copy bootsect.bin location

This commit is contained in:
cvoges12 2021-10-04 04:52:36 +00:00
parent 5e8eb65672
commit 6e9c16bdac
2 changed files with 7 additions and 2 deletions

View file

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

View file

@ -7,13 +7,13 @@ src/bootsect.sh
# add answerfile
cp data/autounattend.xml ${EXTRACT}
BOOT_PATCH="bootsect/bootsect.bin"
BOOT="bootsect.bin"
# install mkisofs
# recreate iso
mkisofs \
-allow-limited-size \
-b ${BOOT_PATCH} \
-b ${BOOT} \
-no-emul-boot \
-boot-load-seg 1984 \
-boot-load-size 4 \
@ -23,5 +23,9 @@ mkisofs \
-o winsp.iso \
${EXTRACT}
# clean up bootsect
rm bootsect.bin
rm -rf bootsect/
# clean up iso extract
sudo rm -rf ${EXTRACT}