feat: Add option to boot in recovery mode (#433)

This commit is contained in:
Kroese
2026-06-19 12:32:31 +02:00
committed by GitHub
parent f7c1280ca0
commit 42bb16067f
2 changed files with 10 additions and 1 deletions
+1 -1
View File
@@ -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?
+9
View File
@@ -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"