mirror of
https://github.com/sickcodes/Docker-OSX.git
synced 2026-01-11 21:10:25 +01:00
Changing OpenCoreBoot's config.plist to allow to select the default boot disk via AllowSetDefault #47
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @sck on GitHub (Jun 21, 2020).
I have been trying to enable
AllowSetDefaultinOpenCore-Catalina'sconfig.plist. There is a script calledopencore-image-ng.shwhich builds a newOpenCore.qcow2and also uses theconfig.plist. But the generatedOpenCore.qcow2never behaves like the original qcow2 (even when not changing theconfig.plistat all). It printsstart pxe over ipv4in the beginning and after pressing ESC it just starts the UEFI shell, and doesn't offer to boot into OSX at all@sickcodes commented on GitHub (Jun 21, 2020):
You can try loop mounting the qcow image or just hexedit it and turn that value on.
@sck commented on GitHub (Jun 24, 2020):
I've now been able to rebuilt OpenCoreBoot with a new config.plist:
For libguestfs/loop mounting I added these packages to my Dockerfile:
OpenCore is missing some files for the image to be rebuilt, so I reinstalled it under
/home/arch/OSX-KVM/OpenCore-CatalinaNow the image can be rebuilt without errors:
For enabling to boot automatically I removed
-device ide-hd,bus=sata.3,drive=InstallMediaand-drive id=InstallMedia,if=none,file=$BASESYSTEM,format=rawfrom the qemu parameters and used this patch for config.plist:This will then boot from the first hdd which is where my macos installation resides.
@sickcodes commented on GitHub (Jul 4, 2020):
You’re awesome dude, pull request or can I include this in the code for you?
@sck commented on GitHub (Jul 4, 2020):
Feel free to use what I documented! I have a slightly different setup atm, so not easy to generate a pull request...
@daraul commented on GitHub (Jul 14, 2020):
Any way we can see the code, @sck? Even if it's not in a PR, it would still be useful.