summaryrefslogtreecommitdiffstats
path: root/bootcd
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2018-07-05 05:58:04 +0200
committerSuren A. Chilingaryan <csa@suren.me>2018-07-05 05:58:04 +0200
commit8befef16dc59618f81a3f828ff809ac5da94e971 (patch)
tree026c22b2356a9c075ccb076515b29633c8fb066b /bootcd
parent638d3091662918e893d9fb9edbd7f553e7df8240 (diff)
downloadkickstart-8befef16dc59618f81a3f828ff809ac5da94e971.tar.gz
kickstart-8befef16dc59618f81a3f828ff809ac5da94e971.tar.bz2
kickstart-8befef16dc59618f81a3f828ff809ac5da94e971.tar.xz
kickstart-8befef16dc59618f81a3f828ff809ac5da94e971.zip
Parametrize cd-building
Diffstat (limited to 'bootcd')
-rwxr-xr-xbootcd/build.sh7
-rw-r--r--bootcd/isolinux-centos.cfg6
-rw-r--r--bootcd/isolinux-fedora.cfg4
3 files changed, 10 insertions, 7 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
diff --git a/bootcd/isolinux-centos.cfg b/bootcd/isolinux-centos.cfg
index 54f3a26..58a940e 100644
--- a/bootcd/isolinux-centos.cfg
+++ b/bootcd/isolinux-centos.cfg
@@ -11,13 +11,13 @@ timeout 10
label auto
menu label ^Kickstart CentOS 7 for Ands
kernel vmlinuz
- append initrd=initrd.img inst.stage2=hd:LABEL=CentOS\x207\x20x86_64 @EXTRA@ console=tty1 console=ttyS1,115200 earlyprint=serial,ttyS1,115200 ip=dhcp inst.vnc inst.vncpassword=ipepdv inst.ks=http://ufo.kit.edu/ands/kickstart/centos/ inst.ks.sendsn inst.ks.sendmac
-# append initrd=initrd.img inst.stage2=hd:LABEL=CentOS\x207\x20x86_64 @EXTRA@ nomodeset text console=tty1 console=ttyS1,115200 earlyprint=serial,ttyS1,115200 ip=dhcp inst.vnc inst.vncpassword=ipepdv inst.ks=http://ufo.kit.edu/ands/kickstart/ inst.ks.sendsn inst.ks.sendmac
+ append initrd=initrd.img inst.stage2=hd:LABEL=CentOS\x207\x20x86_64 @EXTRA@ console=tty1 console=ttyS1,115200 earlyprint=serial,ttyS1,115200 ip=dhcp inst.vnc inst.vncpassword=ipepdv inst.ks=@KICKSTART@/centos/ inst.ks.sendsn inst.ks.sendmac
+# append initrd=initrd.img inst.stage2=hd:LABEL=CentOS\x207\x20x86_64 @EXTRA@ nomodeset text console=tty1 console=ttyS1,115200 earlyprint=serial,ttyS1,115200 ip=dhcp inst.vnc inst.vncpassword=ipepdv inst.ks=@KICKSTART@/ inst.ks.sendsn inst.ks.sendmac
label local
menu label ^Kickstart CentOS 7 for Ands
kernel vmlinuz
- append initrd=initrd.img inst.stage2=hd:LABEL=CentOS\x207\x20x86_64 @EXTRA@ console=tty1 console=ttyS1,115200 earlyprint=serial,ttyS1,115200 ip=dhcp inst.ks=http://ufo.kit.edu/ands/kickstart/centos/ inst.ks.sendsn inst.ks.sendmac xdriver=vesa nomodeset
+ append initrd=initrd.img inst.stage2=hd:LABEL=CentOS\x207\x20x86_64 @EXTRA@ console=tty1 console=ttyS1,115200 earlyprint=serial,ttyS1,115200 ip=dhcp inst.ks=@KICKSTART@/centos/ inst.ks.sendsn inst.ks.sendmac xdriver=vesa nomodeset
label linux
menu label ^Install CentOS 7
diff --git a/bootcd/isolinux-fedora.cfg b/bootcd/isolinux-fedora.cfg
index 2580b41..962feda 100644
--- a/bootcd/isolinux-fedora.cfg
+++ b/bootcd/isolinux-fedora.cfg
@@ -10,12 +10,12 @@ timeout 100
label auto
menu label ^Kickstart Fedora 28
kernel vmlinuz
- append initrd=initrd.img inst.stage2=hd:LABEL=Fedora-S-dvd-x86_64-28 @EXTRA@ console=tty1 console=ttyS1,115200 earlyprint=serial,ttyS1,115200 ip=dhcp inst.vnc inst.vncpassword=ipepdv inst.ks=http://ufo.kit.edu/ands/kickstart/fedora/ inst.ks.sendsn inst.ks.sendmac
+ append initrd=initrd.img inst.stage2=hd:LABEL=Fedora-S-dvd-x86_64-28 @EXTRA@ console=tty1 console=ttyS1,115200 earlyprint=serial,ttyS1,115200 ip=dhcp inst.vnc inst.vncpassword=ipepdv inst.ks=@KICKSTART@/fedora/ inst.ks.sendsn inst.ks.sendmac
label local
menu label ^Kickstart Locally Fedora 28
kernel vmlinuz
- append initrd=initrd.img inst.stage2=hd:LABEL=Fedora-S-dvd-x86_64-28 @EXTRA@ console=tty1 console=ttyS1,115200 earlyprint=serial,ttyS1,115200 ip=dhcp inst.ks=http://ufo.kit.edu/ands/kickstart/fedora/ inst.ks.sendsn inst.ks.sendmac
+ append initrd=initrd.img inst.stage2=hd:LABEL=Fedora-S-dvd-x86_64-28 @EXTRA@ console=tty1 console=ttyS1,115200 earlyprint=serial,ttyS1,115200 ip=dhcp inst.ks=@KICKSTART@/fedora/ inst.ks.sendsn inst.ks.sendmac
label linux
menu label ^Install Fedora 28