From 067322f0689eec11bd77143c570c69d58d92c5fd Mon Sep 17 00:00:00 2001 From: Kroese Date: Sat, 19 Oct 2024 09:02:20 +0200 Subject: [PATCH] feat: Store arguments --- src/install.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/install.sh b/src/install.sh index 3170833..fb5e15a 100644 --- a/src/install.sh +++ b/src/install.sh @@ -120,6 +120,7 @@ finishInstall() { rm -f "$STORAGE/windows.old" rm -f "$STORAGE/windows.vga" + rm -f "$STORAGE/windows.args" rm -f "$STORAGE/windows.base" rm -f "$STORAGE/windows.boot" rm -f "$STORAGE/windows.mode" @@ -965,6 +966,12 @@ bootWindows() { rm -rf "$TMP" + if [ -s "$STORAGE/windows.args" ] && [ -f "$STORAGE/windows.args" ]; then + local args="" + args=$(<"$STORAGE/windows.args") + ARGUMENTS="$args ${ARGUMENTS:-}" + fi + if [ -s "$STORAGE/windows.type" ] && [ -f "$STORAGE/windows.type" ]; then [ -z "${DISK_TYPE:-}" ] && DISK_TYPE=$(<"$STORAGE/windows.type") fi