summaryrefslogtreecommitdiffstats
path: root/kickstart/autocd/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'kickstart/autocd/build.sh')
-rwxr-xr-xkickstart/autocd/build.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/kickstart/autocd/build.sh b/kickstart/autocd/build.sh
new file mode 100755
index 0000000..289b4e2
--- /dev/null
+++ b/kickstart/autocd/build.sh
@@ -0,0 +1,17 @@
+#!/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/