summaryrefslogtreecommitdiffstats
path: root/bootcd/build.sh
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2018-08-05 06:59:56 +0200
committerSuren A. Chilingaryan <csa@suren.me>2018-08-05 06:59:56 +0200
commit4ce390b9379314455c2b765b67fc39b27d69e6e8 (patch)
tree6af586bd071805d9ed08e3aca8ac19261196fe99 /bootcd/build.sh
parent12b2ed009050747316afdfb17665a2fafb2836ca (diff)
parentacb918cf6c5401d805273c5661ec336d14b9c009 (diff)
downloadkickstart-4ce390b9379314455c2b765b67fc39b27d69e6e8.tar.gz
kickstart-4ce390b9379314455c2b765b67fc39b27d69e6e8.tar.bz2
kickstart-4ce390b9379314455c2b765b67fc39b27d69e6e8.tar.xz
kickstart-4ce390b9379314455c2b765b67fc39b27d69e6e8.zip
Merge branch 'master' of https://darksoft.org/git/csa/devops/kickstart
Diffstat (limited to 'bootcd/build.sh')
-rwxr-xr-xbootcd/build.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/bootcd/build.sh b/bootcd/build.sh
index 153ecf0..9c8cdda 100755
--- a/bootcd/build.sh
+++ b/bootcd/build.sh
@@ -1,5 +1,8 @@
#!/bin/bash
+images="root@192.168.26.134:/virtual/images/"
+kickstart="http://ufo.kit.edu/ands/kickstart"
+
#inst.stage2 in isolinux.cfg needs to match the label of ISO, to get lable use 'file <name.iso>' or 'isoinfo -d -i <name.iso>'
#Lantronix Spider does not provide CDROM labels (we can add inst.stage2=cdrom, but this may break booting on multicd systems)
centos74_label="CentOS 7 x86_64"
@@ -52,7 +55,7 @@ echo "Using configuration: $isolinux"
#Generating config
chmod +w $distrib/isolinux
chmod +w $distrib/isolinux/isolinux.cfg
-sed -e "s/@EXTRA@/$extra/g" $isolinux > $distrib/isolinux/isolinux.cfg || die "Can't overwrite the configuration"
+sed -e "s/@EXTRA@/$extra/g" -e "s|@KICKSTART@|$kickstart|g" $isolinux > $distrib/isolinux/isolinux.cfg || die "Can't overwrite the configuration"
#Creating output folder
mkdir -p iso
@@ -75,4 +78,4 @@ mkdir -p iso
)
#Installing
-scp iso/${isoname}.iso root@192.168.26.134:/virtual/images/
+scp iso/${isoname}.iso $images