diff --git a/src/bootsect.sh b/src/bootsect.sh index c3ac014..afa6f8a 100755 --- a/src/bootsect.sh +++ b/src/bootsect.sh @@ -1,3 +1,4 @@ #!/bin/sh git clone https://github.com/wrzlbrmft/bootsect +cp bootsect/bootsect.bin . diff --git a/src/iso.sh b/src/iso.sh index fd2a5af..9974651 100755 --- a/src/iso.sh +++ b/src/iso.sh @@ -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}