|
@@ -120,6 +120,7 @@ finishInstall() {
|
|
|
|
|
|
rm -f "$STORAGE/windows.old"
|
|
rm -f "$STORAGE/windows.old"
|
|
rm -f "$STORAGE/windows.vga"
|
|
rm -f "$STORAGE/windows.vga"
|
|
|
|
+ rm -f "$STORAGE/windows.args"
|
|
rm -f "$STORAGE/windows.base"
|
|
rm -f "$STORAGE/windows.base"
|
|
rm -f "$STORAGE/windows.boot"
|
|
rm -f "$STORAGE/windows.boot"
|
|
rm -f "$STORAGE/windows.mode"
|
|
rm -f "$STORAGE/windows.mode"
|
|
@@ -156,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
|
|
@@ -965,6 +971,11 @@ bootWindows() {
|
|
|
|
|
|
rm -rf "$TMP"
|
|
rm -rf "$TMP"
|
|
|
|
|
|
|
|
+ if [ -f "$STORAGE/windows.args" ]; then
|
|
|
|
+ ARGS=$(<"$STORAGE/windows.args")
|
|
|
|
+ ARGUMENTS="$ARGS ${ARGUMENTS:-}"
|
|
|
|
+ fi
|
|
|
|
+
|
|
if [ -s "$STORAGE/windows.type" ] && [ -f "$STORAGE/windows.type" ]; then
|
|
if [ -s "$STORAGE/windows.type" ] && [ -f "$STORAGE/windows.type" ]; then
|
|
[ -z "${DISK_TYPE:-}" ] && DISK_TYPE=$(<"$STORAGE/windows.type")
|
|
[ -z "${DISK_TYPE:-}" ] && DISK_TYPE=$(<"$STORAGE/windows.type")
|
|
fi
|
|
fi
|