windows_init/src/iso.sh

32 lines
514 B
Bash
Executable File

#!/bin/sh
src/extract_iso.sh
EXTRACT="win/"
src/bootsect.sh
# add answerfile
cp data/autounattend.xml ${EXTRACT}
BOOT="bootsect.bin"
# install mkisofs
# recreate iso
mkisofs \
-allow-limited-size \
-b ${BOOT} \
-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 bootsect
rm bootsect.bin
rm -rf bootsect/
# clean up iso extract
sudo rm -rf ${EXTRACT}