diff --git a/src/bootsect.sh b/src/bootsect.sh new file mode 100755 index 0000000..c3ac014 --- /dev/null +++ b/src/bootsect.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +git clone https://github.com/wrzlbrmft/bootsect diff --git a/src/iso.sh b/src/iso.sh index a3063e5..fd2a5af 100755 --- a/src/iso.sh +++ b/src/iso.sh @@ -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}