mirror of
https://github.com/dockur/windows.git
synced 2025-10-27 11:25:49 +00:00
feat: Modify ISO
This commit is contained in:
parent
47eabad0c6
commit
0e6adfab37
1 changed files with 15 additions and 3 deletions
|
|
@ -13,16 +13,28 @@ else
|
||||||
PROGRESS="--progress=dot:giga"
|
PROGRESS="--progress=dot:giga"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
SCRIPT="$STORAGE/mido.sh"
|
rm -rf "$STORAGE/tmp"
|
||||||
|
mkdir -p "$STORAGE/tmp"
|
||||||
|
SCRIPT="$STORAGE/tmp/mido.sh"
|
||||||
|
|
||||||
rm -f "$SCRIPT"
|
|
||||||
cp /run/mido.sh "$SCRIPT"
|
cp /run/mido.sh "$SCRIPT"
|
||||||
chmod +x "$SCRIPT"
|
chmod +x "$SCRIPT"
|
||||||
|
|
||||||
|
cd "$STORAGE/tmp"
|
||||||
bash "$SCRIPT" "$VERSION"
|
bash "$SCRIPT" "$VERSION"
|
||||||
rm -f "$SCRIPT"
|
rm -f "$SCRIPT"
|
||||||
|
|
||||||
[ ! -f "$STORAGE/$BASE" ] && error "Failed to download $VERSION.iso!" && exit 66
|
[ ! -f "$STORAGE/tmp/$BASE" ] && error "Failed to download $VERSION.iso!" && exit 66
|
||||||
|
|
||||||
|
info "Modifying ISO to remove keypress requirement..."
|
||||||
|
|
||||||
|
7z x "$BASE" -ounpack
|
||||||
|
genisoimage -b boot/etfsboot.com -no-emul-boot -c BOOT.CAT -iso-level 4 -J -l -D -N -joliet-long -relaxed-filenames -v -V "Custom" -udf -boot-info-table -eltorito-alt-boot -eltorito-boot efi/microsoft/boot/efisys_noprompt.bin -no-emul-boot -o "$STORAGE/tmp/$BASE.tmp" -allow-limited-size unpack
|
||||||
|
|
||||||
|
mv "$STORAGE/tmp/$BASE.tmp" "$STORAGE/$BASE"
|
||||||
|
rm -rf "$STORAGE/tmp"
|
||||||
|
|
||||||
|
cd /run
|
||||||
|
|
||||||
DEST="$STORAGE/drivers.img"
|
DEST="$STORAGE/drivers.img"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue