From 9608e228dbcdd48ef2fc10940f3a28a2e6d7f85c Mon Sep 17 00:00:00 2001 From: Kroese Date: Thu, 25 Jan 2024 00:14:51 +0100 Subject: [PATCH 1/2] fix: Copy xml instead of move --- src/install.sh | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/install.sh b/src/install.sh index 2ee7c3142..d369275e4 100644 --- a/src/install.sh +++ b/src/install.sh @@ -57,21 +57,21 @@ replaceXML() { local asset="$2" local path="$dir/autounattend.xml" - [ -f "$path" ] && mv -f "$asset" "$path" + [ -f "$path" ] && cp "$asset" "$path" path="$dir/Autounattend.xml" - [ -f "$path" ] && mv -f "$asset" "$path" + [ -f "$path" ] && cp "$asset" "$path" path="$dir/AutoUnattend.xml" - [ -f "$path" ] && mv -f "$asset" "$path" + [ -f "$path" ] && cp "$asset" "$path" path="$dir/autounattend.XML" - [ -f "$path" ] && mv -f "$asset" "$path" + [ -f "$path" ] && cp "$asset" "$path" path="$dir/Autounattend.XML" - [ -f "$path" ] && mv -f "$asset" "$path" + [ -f "$path" ] && cp "$asset" "$path" path="$dir/AutoUnattend.XML" - [ -f "$path" ] && mv -f "$asset" "$path" + [ -f "$path" ] && cp "$asset" "$path" path="$dir/AUTOUNATTEND.xml" - [ -f "$path" ] && mv -f "$asset" "$path" + [ -f "$path" ] && cp "$asset" "$path" path="$dir/AUTOUNATTEND.XML" - [ -f "$path" ] && mv -f "$asset" "$path" + [ -f "$path" ] && cp "$asset" "$path" return 0 } @@ -238,7 +238,7 @@ extractImage() { local iso="$1" local dir="$2" local size size_gb space space_gb - + local msg="Extracting downloaded ISO image..." [ -n "$CUSTOM" ] && msg="Extracting local ISO image..." info "$msg" && html "$msg" From 4b26caf082cb34abc18b1ab3b8ac4dd3ead87f3a Mon Sep 17 00:00:00 2001 From: Kroese Date: Thu, 25 Jan 2024 00:16:32 +0100 Subject: [PATCH 2/2] fix: Unneeded rm --- src/install.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/src/install.sh b/src/install.sh index d369275e4..161259c98 100644 --- a/src/install.sh +++ b/src/install.sh @@ -103,7 +103,6 @@ finishInstall() { # Mark ISO as prepared via magic byte printf '\x16' | dd of="$iso" bs=1 seek=0 count=1 conv=notrunc status=none - rm -f "$STORAGE/windows.ver" rm -f "$STORAGE/windows.boot" cp /run/version "$STORAGE/windows.ver"