From b340198424ab445a5f9e2ae8d6fe67fe2097e001 Mon Sep 17 00:00:00 2001 From: Kroese Date: Sat, 19 Oct 2024 09:19:18 +0200 Subject: [PATCH] feat: Store arguments --- src/install.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/install.sh b/src/install.sh index fb5e15a..b03f55a 100644 --- a/src/install.sh +++ b/src/install.sh @@ -157,6 +157,11 @@ finishInstall() { fi fi + if [ -n "${ARGS:-}" ]; then + ARGUMENTS="$ARGS ${ARGUMENTS:-}" + echo "$ARGS" > "$STORAGE/windows.args" + fi + if [ -n "${DISK_TYPE:-}" ] && [[ "${DISK_TYPE:-}" != "scsi" ]]; then echo "$DISK_TYPE" > "$STORAGE/windows.type" fi @@ -966,10 +971,9 @@ bootWindows() { rm -rf "$TMP" - if [ -s "$STORAGE/windows.args" ] && [ -f "$STORAGE/windows.args" ]; then - local args="" - args=$(<"$STORAGE/windows.args") - ARGUMENTS="$args ${ARGUMENTS:-}" + if [ -f "$STORAGE/windows.args" ]; then + ARGS=$(<"$STORAGE/windows.args") + ARGUMENTS="$ARGS ${ARGUMENTS:-}" fi if [ -s "$STORAGE/windows.type" ] && [ -f "$STORAGE/windows.type" ]; then