From 5e8eb65672f614ec69384789e55824ce7b7e7643 Mon Sep 17 00:00:00 2001 From: cvoges12 Date: Sun, 3 Oct 2021 21:01:26 +0000 Subject: [PATCH] windows bootsect --- src/bootsect.sh | 3 +++ src/iso.sh | 20 +++++++++++++++++--- 2 files changed, 20 insertions(+), 3 deletions(-) create mode 100755 src/bootsect.sh 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}