windows bootsect

This commit is contained in:
cvoges12 2021-10-03 21:01:26 +00:00
parent 1e3ef52b26
commit 5e8eb65672
2 changed files with 20 additions and 3 deletions

3
src/bootsect.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
git clone https://github.com/wrzlbrmft/bootsect

View File

@ -1,13 +1,27 @@
#!/bin/sh
src/extract_iso.sh
EXTRACT="win/"
src/bootsect.sh
# add answerfile
cp data/autounattend.xml win/
cp data/autounattend.xml ${EXTRACT}
BOOT_PATCH="bootsect/bootsect.bin"
# install mkisofs
# recreate iso
mkisofs --allow-limited-size -r -o win.iso win
mkisofs \
-allow-limited-size \
-b ${BOOT_PATCH} \
-no-emul-boot \
-boot-load-seg 1984 \
-boot-load-size 4 \
-iso-level 2 \
-J -l -D -N -joliet-long -relaxed-filenames \
-V "WINSP" \
-o winsp.iso \
${EXTRACT}
# clean up iso extract
sudo rm -rf win
sudo rm -rf ${EXTRACT}