mirror of
https://github.com/dockur/macos.git
synced 2026-10-12 02:13:08 +00:00
feat: Add option to boot in recovery mode (#433)
This commit is contained in:
@@ -108,7 +108,7 @@ kubectl apply -f https://raw.githubusercontent.com/dockur/macos/refs/heads/maste
|
||||
| `11` | macOS 11 | Big Sur |
|
||||
|
||||
> [!NOTE]
|
||||
> You can also select macOS 26 (Tahoe), but beware that it runs very slow currently.
|
||||
> You can also select macOS 26 (Tahoe), but that is not recommended yet, as it runs very slow for some unknown reason.
|
||||
|
||||
### How do I change the storage location?
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@ set -Eeuo pipefail
|
||||
|
||||
# Docker environment variables
|
||||
: "${SECURE:="off"}" # Secure boot
|
||||
: "${PICKER:="N"}" # Show picker
|
||||
: "${BOOT_MODE:="macos"}" # Boot mode
|
||||
|
||||
BOOT_DESC=""
|
||||
@@ -122,6 +123,14 @@ if [ ! -f "$IMG" ]; then
|
||||
sed -r -i -e 's|<string>1920x1080@32</string>|<string>'"${RESOLUTION}"'</string>|g' "$CFG"
|
||||
sed -r -i -e 's|<string>00000000-0000-0000-0000-000000000000</string>|<string>'"${UUID}"'</string>|g' "$CFG"
|
||||
|
||||
# Show boot picker if requested
|
||||
if [[ "$PICKER" == [Yy1]* ]]; then
|
||||
sed -i '/<key>ShowPicker<\/key>/{n;s/<false\/>/<true\/>/}' "$CFG"
|
||||
sed -i '/<key>HideAuxiliary<\/key>/{n;s/<true\/>/<false\/>/}' "$CFG"
|
||||
sed -i '/<key>Timeout<\/key>/{n;s/<integer>[0-9]\+<\/integer>/<integer>10<\/integer>/}' "$CFG"
|
||||
sed -i '/<key>PickerMode<\/key>/{n;s/<string>External<\/string>/<string>Builtin<\/string>/}' "$CFG"
|
||||
fi
|
||||
|
||||
# Add kext to disable VM detection
|
||||
kexts="$EFI_DIR/OC/Kexts"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user