Closed dougpuob closed 2 years ago
@dougpuob At least for opencore, if you hold ctrl as you press enter on the boot entry, it will se it to default boot.
@dougpuob At least for opencore, if you hold ctrl as you press enter on the boot entry, it will se it to default boot.
Hi @notAperson535 , thank you for the information, I will have it a try.
Close this issue because I found the solution. The following is the solution and details.
I found the description of <key> DefaultVolume </key>
in the "Khaki Clover" document. I should use the volume name instead GUID, so I modified the value from <string>D25D46DF-3DC0-43FB-B626-6433EDCBA348</string>
to <string>mac</string>
. Then it works to boot into OS automatically.
Why do I know the volume name is mac
in the <string>mac</string>
. I execute the diskutil list
command in macOS console.
/dev/disk3 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +68.4 GB disk3
Physical Store disk1s2
1: APFS Volume mac - Data 8.0 GB disk3s1
2: APFS Volume Preboot 25.3 MB disk3s2
3: APFS Volume Recovery 525.8 MB disk3s3
4: APFS Volume VM 1.1 MB disk3s4
5: APFS Volume mac 11.1 GB disk3s5 <-- **HERE**
correct
)sudo nano ~/workspace/myesp/EFI/CLOVER/config.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Boot</key>
<dict>
<key>Arguments</key>
<string>-v</string>
<key>DefaultVolume</key>
<string>mac</string>
<key>Log</key>
<true/>
<key>Secure</key>
<false/>
<key>Timeout</key>
<integer>5</integer>
</dict>
...
incorrect
)<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Boot</key>
<dict>
<key>Arguments</key>
<string>-v</string>
<key>DefaultVolume</key>
<string>D25D46DF-3DC0-43FB-B626-6433EDCBA348</string>
<key>Log</key>
<true/>
<key>Secure</key>
<false/>
<key>Timeout</key>
<integer>5</integer>
</dict>
...
"
DefaultVolume " "MacHDD "the name of the section, as you named it, as you see it in the bootloader log. However, the name can also be set in NVRAM after reboot from the "Startup Disk" control panel. The name set in NVRAM takes precedence. There is an option "LastBootedVolume". That is, we will boot from the volume from which we loaded last time. If the parameter is not specified at all, then only from the control panel.
● Expected behavior
I want to make it boots into the OS automatically on QEMU.
● Current behavior
EFI/CLOVER/config.plist
file in theESP.qcow2
, but QEMU still stopped at CLOVER boot manager.● WHAT I DID
List disk information by diskutil.
Find the GUID of the partition by diskutil.
Modified the
EFI/CLOVER/config.plist
file in theESP.qcow2
image.Launch the QEMU again.
ESP.qcow2
.macos-catalina10.15.7.qcow2
.