#!/bin/bash if [ -n "bootcd/isolinux" ]; then echo "1) Copy content of official CentOS boot CD to bootcd directory" echo "2) Replace files provided in 'isolinux' directory" exit fi ( cd bootcd chmod 664 isolinux/isolinux.bin rm -f ../centos74-ands.iso mkisofs -o ../centos74-ands.iso -b isolinux/isolinux.bin -c boot.cat -no-emul-boot -V 'CentOS 7 x86_64' -boot-load-size 4 -boot-info-table -R -J -v -T . ) scp centos74-ands.iso root@192.168.26.134:/virtual/images/