copy bootsect.bin location
This commit is contained in:
parent
5e8eb65672
commit
6e9c16bdac
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,4 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
git clone https://github.com/wrzlbrmft/bootsect
|
git clone https://github.com/wrzlbrmft/bootsect
|
||||||
|
cp bootsect/bootsect.bin .
|
||||||
|
|
|
@ -7,13 +7,13 @@ src/bootsect.sh
|
||||||
|
|
||||||
# add answerfile
|
# add answerfile
|
||||||
cp data/autounattend.xml ${EXTRACT}
|
cp data/autounattend.xml ${EXTRACT}
|
||||||
BOOT_PATCH="bootsect/bootsect.bin"
|
BOOT="bootsect.bin"
|
||||||
|
|
||||||
# install mkisofs
|
# install mkisofs
|
||||||
# recreate iso
|
# recreate iso
|
||||||
mkisofs \
|
mkisofs \
|
||||||
-allow-limited-size \
|
-allow-limited-size \
|
||||||
-b ${BOOT_PATCH} \
|
-b ${BOOT} \
|
||||||
-no-emul-boot \
|
-no-emul-boot \
|
||||||
-boot-load-seg 1984 \
|
-boot-load-seg 1984 \
|
||||||
-boot-load-size 4 \
|
-boot-load-size 4 \
|
||||||
|
@ -23,5 +23,9 @@ mkisofs \
|
||||||
-o winsp.iso \
|
-o winsp.iso \
|
||||||
${EXTRACT}
|
${EXTRACT}
|
||||||
|
|
||||||
|
# clean up bootsect
|
||||||
|
rm bootsect.bin
|
||||||
|
rm -rf bootsect/
|
||||||
|
|
||||||
# clean up iso extract
|
# clean up iso extract
|
||||||
sudo rm -rf ${EXTRACT}
|
sudo rm -rf ${EXTRACT}
|
||||||
|
|
Loading…
Reference in a new issue