From 8befef16dc59618f81a3f828ff809ac5da94e971 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Thu, 5 Jul 2018 05:58:04 +0200 Subject: Parametrize cd-building --- bootcd/build.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'bootcd/build.sh') 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 ' or 'isoinfo -d -i ' #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 -- cgit v1.2.3 From db87d3dc5284372b73fbd50e96755d15deb70268 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Thu, 5 Jul 2018 06:04:12 +0200 Subject: Fix escaping --- bootcd/build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bootcd/build.sh') diff --git a/bootcd/build.sh b/bootcd/build.sh index 4cfee75..9c8cdda 100755 --- a/bootcd/build.sh +++ b/bootcd/build.sh @@ -1,7 +1,7 @@ #!/bin/bash images="root@192.168.26.134:/virtual/images/" -kickstart="http://ufo.kit.edu/ands/kickstart/" +kickstart="http://ufo.kit.edu/ands/kickstart" #inst.stage2 in isolinux.cfg needs to match the label of ISO, to get lable use 'file ' or 'isoinfo -d -i ' #Lantronix Spider does not provide CDROM labels (we can add inst.stage2=cdrom, but this may break booting on multicd systems) @@ -55,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" -e "s/@KICKSTART@/$kickstart/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 -- cgit v1.2.3