From 6e9c16bdac76660fa394e054b2a5f41d401ee022 Mon Sep 17 00:00:00 2001 From: cvoges12 Date: Mon, 4 Oct 2021 04:52:36 +0000 Subject: [PATCH] copy bootsect.bin location --- src/bootsect.sh | 1 + src/iso.sh | 8 ++++++-- 2 files changed, 7 insertions(+), 2 deletions(-) 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}