barrykn / big-sur-micropatcher

A primitive USB patcher for installing macOS Big Sur on unsupported Macs
1.24k stars 174 forks source link

"install-setvars cannot continue" error #142

Closed Mennaruuk closed 3 years ago

Mennaruuk commented 3 years ago

I keep encountering this problem. createinstallmediagoes smooth. So does micropatcher.sh. However, install-setvars (run with sudo) does not work. I used Disk Utility to successfully format the USB stick as HFS+ on GUID partition map. The error persisted. I followed the advice in this Reddit post suggesting to sudo mount -u -w the USB flash before running install-setvars. Unfortunately that didn't get me anywhere but to the same error.

ANONYMOUSs-iMac:big-sur-micropatcher-0.5.1 anon$ sudo /Applications/Install\ macOS\ Big\ Sur.app/Contents/Resources/createinstallmedia --volume /Volumes/BIGSUR
Ready to start.
To continue we need to erase the volume at /Volumes/BIGSUR.
If you wish to continue type (Y) then press return: Y
Erasing disk: 0%... 10%... 20%... 30%... 100%
Copying to disk: 0%... 10%... 20%... 30%... 40%... 50%... 60%... 70%... 80%... 90%... 100%
Making disk bootable...
Install media now available at "/Volumes/Install macOS Big Sur"
ANONYMOUSs-iMac:big-sur-micropatcher-0.5.1 anon$ /Users/anon/Desktop/big-sur-micropatcher-0.5.1/micropatcher.sh /Volumes/Install\ macOS\ Big\ Sur
BarryKN Big Sur Micropatcher v0.5.1
Thanks to jackluke, ASentientBot, highvoltage12v, testheit, and
ParrotGeek for their hard work to get Big Sur running on unsupported
Macs! (See the README for more information.)

Patching com.apple.Boot.plist...
Installing trampoline...
Copying shell scripts...
Adding Hax dylibs...
Adding kexts and other binaries...
Saving patcher version info...

Syncing.

Micropatcher finished.
ANONYMOUSs-iMac:big-sur-micropatcher-0.5.1 anon$ sudo mount -u -w /Volumes/Install\ macOS\ Big\ Sur
Password:

ANONYMOUSs-iMac:big-sur-micropatcher-0.5.1 anon$ sudo bash install-setvars.sh
/Volumes/Install macOS Big Sur found on device /dev/disk1
Unable to find disk for /dev/disk1s1
Partition 1 of the USB stick does not appear to be an EFI partition, or
mounting of the partition somehow failed.

Please use Disk Utility to erase the USB stick as "Mac OS Extended
(Journaled)" format on "GUID Partition Map" scheme and start over with
"createinstallmedia". Or for other methods, please refer to the micropatcher
README for more information.

install-setvars cannot continue.
seyoon20087 commented 3 years ago

Hi, @Mennaruuk, did you use the correct format and scheme?

  1. Your installation medium must be formatted in Disk Utility as the following:
Name: [vary]
Format: Mac OS Extended (Journaled)
Scheme: GUID Partition Map

image

  1. Then, you need to do createinstallmedia again:
sudo /Applications/Install\ macOS\ Big\ Sur.app/Contents/Resources/createinstallmedia --volume /Volumes/[volumename]
  1. Now, redo sudo ./micropatcher.sh and sudo ./install-setvars.sh:
sudo bash ./micropatcher.sh /Volumes/[volumename] ; sudo bash ./install-setvars.sh /Volumes/[volumename]

If the above method doesn't do so, you can copy it manually. Just follow the steps below. (However, you need to do sudo ./micropatcher.sh first.)

  1. With Terminal opened, run diskutil list. This shows current volumes attached to your Mac. For example, I'll use /dev/disk2.
    
    /dev/disk0 (internal, physical):
    #:                       TYPE NAME                    SIZE       IDENTIFIER
    0:      GUID_partition_scheme                        *251.0 GB   disk0
    1:                        EFI ⁨EFI⁩                     314.6 MB   disk0s1
    2:                 Apple_APFS ⁨Container disk1⁩         250.7 GB   disk0s2

/dev/disk1 (synthesized):

: TYPE NAME SIZE IDENTIFIER

0: APFS Container Scheme - +250.7 GB disk1 Physical Store disk0s2 1: APFS Volume ⁨Macintosh HD⁩ 14.9 GB disk1s1 2: APFS Snapshot ⁨com.apple.os.update-...⁩ 14.9 GB disk1s1s1 3: APFS Volume ⁨Macintosh HD - Data⁩ 95.3 GB disk1s2 4: APFS Volume ⁨Preboot⁩ 327.0 MB disk1s3 5: APFS Volume ⁨Recovery⁩ 655.4 MB disk1s4 6: APFS Volume ⁨VM⁩ 3.2 GB disk1s5

/dev/disk2 (external, physical):

: TYPE NAME SIZE IDENTIFIER

0: GUID_partition_scheme *61.5 GB disk2 1: EFI ⁨EFI⁩ 209.7 MB disk2s1 2: Apple_HFS ⁨Install macOS Big Sur⁩ 61.2 GB disk2s2


2. Run `sudo diskutil mount [diskname]s1`, for example `sudo diskutil mount /dev/disk2s1`.

3. Run `sysctl -n hw.model`.
    * If you see `iMac14,1`, `iMac14,2`, or `iMac14,3`, you can run this command: `sudo cp -r ./setvars/EFI-enablesiparv /Volumes/EFI/EFI`
    * Otherwise you can run this command: `sudo cp -r ./setvars/EFI /Volumes/EFI/EFI`

4. Now, unmount the EFI partition:

sudo umount /Volumes/EFI || sudo diskutil unmount /Volumes/EFI



I hope this helps. If the second method doesn't do so neither, please let me know.
Mennaruuk commented 3 years ago

The second method worked perfectly! Now I successfully made a bootable Big Sur installer disk. Thank you!