feat: Store arguments

This commit is contained in:
Kroese 2024-10-19 09:19:18 +02:00 committed by GitHub
parent bc57277f22
commit b340198424
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -157,6 +157,11 @@ finishInstall() {
fi fi
fi fi
if [ -n "${ARGS:-}" ]; then
ARGUMENTS="$ARGS ${ARGUMENTS:-}"
echo "$ARGS" > "$STORAGE/windows.args"
fi
if [ -n "${DISK_TYPE:-}" ] && [[ "${DISK_TYPE:-}" != "scsi" ]]; then if [ -n "${DISK_TYPE:-}" ] && [[ "${DISK_TYPE:-}" != "scsi" ]]; then
echo "$DISK_TYPE" > "$STORAGE/windows.type" echo "$DISK_TYPE" > "$STORAGE/windows.type"
fi fi
@ -966,10 +971,9 @@ bootWindows() {
rm -rf "$TMP" rm -rf "$TMP"
if [ -s "$STORAGE/windows.args" ] && [ -f "$STORAGE/windows.args" ]; then if [ -f "$STORAGE/windows.args" ]; then
local args="" ARGS=$(<"$STORAGE/windows.args")
args=$(<"$STORAGE/windows.args") ARGUMENTS="$ARGS ${ARGUMENTS:-}"
ARGUMENTS="$args ${ARGUMENTS:-}"
fi fi
if [ -s "$STORAGE/windows.type" ] && [ -f "$STORAGE/windows.type" ]; then if [ -s "$STORAGE/windows.type" ] && [ -f "$STORAGE/windows.type" ]; then