mirror of
https://github.com/dockur/windows.git
synced 2025-10-27 11:25:49 +00:00
feat: Verify system files
This commit is contained in:
parent
bd8deccd7d
commit
6291b426f3
1 changed files with 20 additions and 9 deletions
|
|
@ -187,19 +187,30 @@ LABEL="${LABEL::32}"
|
||||||
ISO="$TMP/$LABEL.tmp"
|
ISO="$TMP/$LABEL.tmp"
|
||||||
rm -f "$ISO"
|
rm -f "$ISO"
|
||||||
|
|
||||||
|
CAT="BOOT.CAT"
|
||||||
|
ETFS="boot/etfsboot.com"
|
||||||
EFISYS="efi/microsoft/boot/efisys_noprompt.bin"
|
EFISYS="efi/microsoft/boot/efisys_noprompt.bin"
|
||||||
[ -f "$DIR/$EFISYS" ] && EFISYS="efi/microsoft/boot/efisys.bin"
|
|
||||||
|
|
||||||
if [ -f "$DIR/$EFISYS" ]; then
|
|
||||||
|
|
||||||
genisoimage -b boot/etfsboot.com -no-emul-boot -c BOOT.CAT -iso-level 4 -J -l -D -N -joliet-long -relaxed-filenames -v -V "$LABEL" \
|
|
||||||
-udf -boot-info-table -eltorito-alt-boot -eltorito-boot "$EFISYS" -no-emul-boot -o "$ISO" -allow-limited-size "$DIR"
|
|
||||||
else
|
|
||||||
|
|
||||||
error "Failed to locate file 'efisys.bin' in ISO image!" && exit 64
|
|
||||||
|
|
||||||
|
if [ ! -f "$DIR/$CAT" ]; then
|
||||||
|
error "Failed to locate file '$(basename "$CAT")' in ISO image!" && exit 63
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ ! -f "$DIR/$ETFS" ]; then
|
||||||
|
error "Failed to locate file '$(basename "$ETFS")' in ISO image!" && exit 64
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ ! -f "$DIR/$EFISYS" ]; then
|
||||||
|
EFISYS="efi/microsoft/boot/efisys.bin"
|
||||||
|
if [ -f "$DIR/$EFISYS" ]; then
|
||||||
|
error "Failed to locate file 'efisys_noprompt' in ISO image!"
|
||||||
|
else
|
||||||
|
error "Failed to locate file 'efisys.bin' in ISO image!" && exit 65
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
genisoimage -b "$ETFS" -no-emul-boot -c "$CAT" -iso-level 4 -J -l -D -N -joliet-long -relaxed-filenames -v -V "$LABEL" -udf \
|
||||||
|
-boot-info-table -eltorito-alt-boot -eltorito-boot "$EFISYS" -no-emul-boot -o "$ISO" -allow-limited-size "$DIR"
|
||||||
|
|
||||||
mv "$ISO" "$STORAGE/$BASE"
|
mv "$ISO" "$STORAGE/$BASE"
|
||||||
rm -rf "$TMP"
|
rm -rf "$TMP"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue