Skip to content

Make fw_prepare pick the right cloudOS IPSW automatically#238

Open
felipejfc wants to merge 1 commit intoLakr233:mainfrom
felipejfc:fw-prepare-auto-cloudos
Open

Make fw_prepare pick the right cloudOS IPSW automatically#238
felipejfc wants to merge 1 commit intoLakr233:mainfrom
felipejfc:fw-prepare-auto-cloudos

Conversation

@felipejfc
Copy link
Contributor

What changed

I updated fw_prepare.sh so it fills in CLOUDOS_SOURCE automatically when I don't pass one.

Instead of falling back to a single hardcoded cloudOS URL, it now:

  • derives the build prefix from the selected iPhone IPSW
  • looks up the PCC VM cloudOS catalog in AppleDB (ComputeModule14,2)
  • picks the newest downloadable cloudOS IPSW with the same build prefix

I kept the manual override path the same, so --cloudos-source / CLOUDOS_SOURCE still win if I want to pin a specific cloudOS IPSW.

Why

I don't want to keep matching the cloudOS IPSW by hand every time I change the iPhone firmware. This makes the default path do the right thing and avoids mismatching the PCC firmware.

Quick check

  • bash -n scripts/fw_prepare.sh
  • sanity-checked that a 23D* iPhone build resolves to downloadable cloudOS 23D128 on AppleDB

@felipejfc felipejfc mentioned this pull request Mar 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant