2020-05-02 07:49:09 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
. CONFIG.sh
|
|
|
|
|
|
|
|
# set -o xtrace ## To debug scripts
|
|
|
|
# set -o errexit ## To exit on error
|
|
|
|
# set -o errunset ## To exit if a variable is referenced but not set
|
|
|
|
|
|
|
|
|
|
|
|
function main() {
|
|
|
|
echo "Creating the ISO file..."
|
|
|
|
cd image/
|
2020-05-02 20:41:06 +00:00
|
|
|
|
|
|
|
# Take note of the ending dot when changing this...
|
2020-05-02 07:49:09 +00:00
|
|
|
sudo mkisofs -r -V "${OS_NAME}" -cache-inodes -J -l \
|
2020-05-02 20:41:06 +00:00
|
|
|
-boot-info-table -no-emul-boot -boot-load-size 4 \
|
|
|
|
-b isolinux/isolinux.bin -c isolinux/boot.cat \
|
|
|
|
-o ../"${OS_NAME}".iso .
|
|
|
|
|
2020-05-02 07:49:09 +00:00
|
|
|
cd ..
|
|
|
|
}
|
|
|
|
|
|
|
|
main $@;
|