windows bootsect
This commit is contained in:
parent
1e3ef52b26
commit
5e8eb65672
2 changed files with 20 additions and 3 deletions
3
src/bootsect.sh
Executable file
3
src/bootsect.sh
Executable file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
git clone https://github.com/wrzlbrmft/bootsect
|
20
src/iso.sh
20
src/iso.sh
|
@ -1,13 +1,27 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
src/extract_iso.sh
|
src/extract_iso.sh
|
||||||
|
EXTRACT="win/"
|
||||||
|
|
||||||
|
src/bootsect.sh
|
||||||
|
|
||||||
# add answerfile
|
# add answerfile
|
||||||
cp data/autounattend.xml win/
|
cp data/autounattend.xml ${EXTRACT}
|
||||||
|
BOOT_PATCH="bootsect/bootsect.bin"
|
||||||
|
|
||||||
# install mkisofs
|
# install mkisofs
|
||||||
# recreate iso
|
# 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
|
# clean up iso extract
|
||||||
sudo rm -rf win
|
sudo rm -rf ${EXTRACT}
|
||||||
|
|
Loading…
Reference in a new issue