diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2018-07-05 05:58:04 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2018-07-05 05:58:04 +0200 |
commit | 8befef16dc59618f81a3f828ff809ac5da94e971 (patch) | |
tree | 026c22b2356a9c075ccb076515b29633c8fb066b /bootcd/build.sh | |
parent | 638d3091662918e893d9fb9edbd7f553e7df8240 (diff) | |
download | kickstart-8befef16dc59618f81a3f828ff809ac5da94e971.tar.gz kickstart-8befef16dc59618f81a3f828ff809ac5da94e971.tar.bz2 kickstart-8befef16dc59618f81a3f828ff809ac5da94e971.tar.xz kickstart-8befef16dc59618f81a3f828ff809ac5da94e971.zip |
Parametrize cd-building
Diffstat (limited to 'bootcd/build.sh')
-rwxr-xr-x | bootcd/build.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/bootcd/build.sh b/bootcd/build.sh index 153ecf0..4cfee75 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 |