Unverified Commit 42bb1606 authored by Kroese's avatar Kroese Committed by GitHub
Browse files

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

parent f7c1280c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 −0
Original line number Diff line number Diff line
@@ -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"