fix: Copy xml instead of move (#89)
This commit is contained in:
parent
bc2d8fff54
commit
82ad512dca
@ -57,21 +57,21 @@ replaceXML() {
|
|||||||
local asset="$2"
|
local asset="$2"
|
||||||
|
|
||||||
local path="$dir/autounattend.xml"
|
local path="$dir/autounattend.xml"
|
||||||
[ -f "$path" ] && mv -f "$asset" "$path"
|
[ -f "$path" ] && cp "$asset" "$path"
|
||||||
path="$dir/Autounattend.xml"
|
path="$dir/Autounattend.xml"
|
||||||
[ -f "$path" ] && mv -f "$asset" "$path"
|
[ -f "$path" ] && cp "$asset" "$path"
|
||||||
path="$dir/AutoUnattend.xml"
|
path="$dir/AutoUnattend.xml"
|
||||||
[ -f "$path" ] && mv -f "$asset" "$path"
|
[ -f "$path" ] && cp "$asset" "$path"
|
||||||
path="$dir/autounattend.XML"
|
path="$dir/autounattend.XML"
|
||||||
[ -f "$path" ] && mv -f "$asset" "$path"
|
[ -f "$path" ] && cp "$asset" "$path"
|
||||||
path="$dir/Autounattend.XML"
|
path="$dir/Autounattend.XML"
|
||||||
[ -f "$path" ] && mv -f "$asset" "$path"
|
[ -f "$path" ] && cp "$asset" "$path"
|
||||||
path="$dir/AutoUnattend.XML"
|
path="$dir/AutoUnattend.XML"
|
||||||
[ -f "$path" ] && mv -f "$asset" "$path"
|
[ -f "$path" ] && cp "$asset" "$path"
|
||||||
path="$dir/AUTOUNATTEND.xml"
|
path="$dir/AUTOUNATTEND.xml"
|
||||||
[ -f "$path" ] && mv -f "$asset" "$path"
|
[ -f "$path" ] && cp "$asset" "$path"
|
||||||
path="$dir/AUTOUNATTEND.XML"
|
path="$dir/AUTOUNATTEND.XML"
|
||||||
[ -f "$path" ] && mv -f "$asset" "$path"
|
[ -f "$path" ] && cp "$asset" "$path"
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
@ -103,7 +103,6 @@ finishInstall() {
|
|||||||
# Mark ISO as prepared via magic byte
|
# Mark ISO as prepared via magic byte
|
||||||
printf '\x16' | dd of="$iso" bs=1 seek=0 count=1 conv=notrunc status=none
|
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"
|
rm -f "$STORAGE/windows.boot"
|
||||||
cp /run/version "$STORAGE/windows.ver"
|
cp /run/version "$STORAGE/windows.ver"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user