mirror of
https://github.com/dockur/windows.git
synced 2025-06-23 07:57:48 +00:00
feat: Store arguments
This commit is contained in:
parent
bc57277f22
commit
b340198424
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user