Skip to content

Run a virtual iPhone on an Apple Silicon Mac.

Swift

Remove boot_less dependency

Maximilian Paß478b44a5b67c
diff --git a/Makefile b/Makefile
index 195510b7..10786d84 100644
--- a/Makefile
+++ b/Makefile
@@ -319,7 +319,7 @@ boot: bundle vphoned boot_binary_check
cd $(VM_DIR) && "$(CURDIR)/$(BUNDLE_BIN)" \
--config ./config.plist
-boot_less: bundle vphoned boot_binary_check_less
+boot_less: bundle boot_binary_check_less
cd $(VM_DIR) && "$(CURDIR)/$(BUNDLE_BIN)" \
--config ./config.plist \
--variant less \
diff --git a/scripts/setup_machine.sh b/scripts/setup_machine.sh
index c3307e6f..08c07cad 100755
--- a/scripts/setup_machine.sh
+++ b/scripts/setup_machine.sh
@@ -322,17 +322,22 @@ start_first_boot() {
mkdir -p "$LOG_DIR"
: > "$BOOT_LOG"
+ local target="boot"
+ if [ "$1" -eq 1 ]; then
+ target="boot_less"
+ fi
+
BOOT_FIFO="$(mktemp -u "${TMPDIR:-/tmp}/vphone-first-boot.XXXXXX")"
mkfifo "$BOOT_FIFO"
- (make boot <"$BOOT_FIFO" >"$BOOT_LOG" 2>&1) &
+ (make "$target" <"$BOOT_FIFO" >"$BOOT_LOG" 2>&1) &
BOOT_PID=$!
exec {BOOT_FIFO_FD}>"$BOOT_FIFO"
sleep 2
if ! kill -0 "$BOOT_PID" 2>/dev/null; then
- die "make boot exited early during first boot stage"
+ die "make $target exited early during first boot stage"
fi
}
@@ -801,7 +806,7 @@ main() {
echo "[*] non-interactive (default): auto-starting first boot"
fi
- start_first_boot
+ start_first_boot "$LESS_MODE"
if [[ "$NON_INTERACTIVE" -eq 0 ]]; then
read -r "?[*] Press Enter once the VM is fully booted"