mirror of
https://github.com/dockur/windows.git
synced 2025-10-27 03:15:49 +00:00
feat: Save install info
This commit is contained in:
parent
1183baabc2
commit
e5f62bd90f
1 changed files with 14 additions and 0 deletions
|
|
@ -176,6 +176,8 @@ if [ ! -f "$DIR/$ETFS" ] || [ ! -f "$DIR/$EFISYS" ]; then
|
|||
# Mark ISO as prepared via magic byte
|
||||
printf '\x16' | dd of=$ISO bs=1 seek=0 count=1 conv=notrunc status=none
|
||||
[[ "$ISO" != "$STORAGE/$BASE" ]] && mv -f "$ISO" "$STORAGE/$BASE"
|
||||
rm -f "$STORAGE/windows.xml"
|
||||
echo "$BASE" > "$STORAGE/windows.ver"
|
||||
rm -rf "$TMP"
|
||||
return 0
|
||||
fi
|
||||
|
|
@ -328,7 +330,19 @@ genisoimage -b "$ETFS" -no-emul-boot -c "$CAT" -iso-level 4 -J -l -D -N -joliet-
|
|||
# Mark ISO as prepared via magic byte
|
||||
printf '\x16' | dd of=$OUT bs=1 seek=0 count=1 conv=notrunc status=none
|
||||
|
||||
echo "$BASE" > "$STORAGE/windows.ver"
|
||||
|
||||
if [ -f "$ASSET" ]; then
|
||||
rm -f "$STORAGE/windows.xml"
|
||||
cp "$ASSET" "$STORAGE/windows.xml"
|
||||
fi
|
||||
|
||||
[ -n "$CUSTOM" ] && rm -f "$STORAGE/$CUSTOM"
|
||||
|
||||
if [ -f "$STORAGE/$BASE" ]; then
|
||||
error "File $STORAGE/$BASE does already exist ?!" && exit 64
|
||||
fi
|
||||
|
||||
mv "$OUT" "$STORAGE/$BASE"
|
||||
rm -rf "$TMP"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue