From 65c8140d89e6d0391bee8629de2f6cc26a8f99f5 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Sun, 6 Oct 2019 04:30:23 +0200 Subject: CentOS8 Ands buildcd --- bootcd/build.sh | 10 +++--- bootcd/isolinux-centos8.cfg | 74 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 80 insertions(+), 4 deletions(-) create mode 100644 bootcd/isolinux-centos8.cfg diff --git a/bootcd/build.sh b/bootcd/build.sh index 9c8cdda..45b7faa 100755 --- a/bootcd/build.sh +++ b/bootcd/build.sh @@ -1,12 +1,13 @@ #!/bin/bash -images="root@192.168.26.134:/virtual/images/" +images="root@192.168.26.172:/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" centos75_label="CentOS 7 x86_64" +centos8_label="CentOS-8-BaseOS-x86_64" fedora28_label="Fedora-S-dvd-x86_64-28" die() { echo "$*" 1>&2 ; exit 1; } @@ -14,20 +15,20 @@ usage() { echo "Usage: $0 [--cdrom]"; } [ $# -gt 0 ] || { usage; exit 1; } -distrib=$(echo $1 | grep -oP '[\w\d_\-]+') +distrib=$(echo $(basename "$1") | grep -oP '[\w\d_\-]+') label_arg=$(echo ${distrib}_label) label_std=${!label_arg} -[ -d $distrib ] || die "$distrib is not found" +[ -d "$distrib" ] || die "$distrib is not found" [ -n "$label_std" ] || die "Label for $distrib is not configured" shift ver=1 rhver=$(echo $distrib | grep -oP '\d+') +dmajor=$(echo $distrib | grep -oP '[^\d]+\d?') dname=$(echo $distrib | grep -oP '[^\d]+') - extra="" isoname="$distrib-ands$(if [ $ver -gt 1 ]; then echo $ver ; fi)" @@ -46,6 +47,7 @@ done isolinux="isolinux-${distrib}.cfg" +[ -f $isolinux ] || isolinux="isolinux-${dmajor}.cfg" [ -f $isolinux ] || isolinux="isolinux-${dname}.cfg" [ -f $isolinux ] || die "Configuration $isolinux is not found" diff --git a/bootcd/isolinux-centos8.cfg b/bootcd/isolinux-centos8.cfg new file mode 100644 index 0000000..a58aba9 --- /dev/null +++ b/bootcd/isolinux-centos8.cfg @@ -0,0 +1,74 @@ +default auto +timeout 10 + +label auto + menu label ^Kickstart (VNC) CentOS 8 for Ands + kernel vmlinuz + append initrd=initrd.img inst.stage2=hd:LABEL=CentOS-8-BaseOS-x86_64 @EXTRA@ console=tty1 console=ttyS1,115200 earlyprint=serial,ttyS1,115200 ip=dhcp inst.vnc inst.vncpassword=ipepdv inst.ks=@KICKSTART@/centos8/ inst.ks.sendsn inst.ks.sendmac inst.xtimeout=600 inst.repo=http://ftp.rz.uni-frankfurt.de/pub/mirrors/centos/8.0.1905/BaseOS/x86_64/os/ +# append initrd=initrd.img inst.stage2=hd:LABEL=CentOS-8-BaseOS-x86_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 inst.xtimeout=600 inst.repo=http://ftp.rz.uni-frankfurt.de/pub/mirrors/centos/8.0.1905/BaseOS/x86_64/os/ + +label local + menu label ^Kickstart (VGA) CentOS 8 for Ands + kernel vmlinuz + append initrd=initrd.img inst.stage2=hd:LABEL=CentOS-8-BaseOS-x86_64 @EXTRA@ console=tty1 console=ttyS1,115200 earlyprint=serial,ttyS1,115200 ip=dhcp inst.ks=@KICKSTART@/centos8/ inst.ks.sendsn inst.ks.sendmac xdriver=vesa nomodeset inst.repo=http://ftp.rz.uni-frankfurt.de/pub/mirrors/centos/8.0.1905/BaseOS/x86_64/os/ + +label linux + menu label ^Install CentOS Linux 8.0.1905 + kernel vmlinuz + append initrd=initrd.img inst.stage2=hd:LABEL=CentOS-8-BaseOS-x86_64 quiet + +label check + menu label Test this ^media & install CentOS Linux 8.0.1905 + menu default + kernel vmlinuz + append initrd=initrd.img inst.stage2=hd:LABEL=CentOS-8-BaseOS-x86_64 rd.live.check quiet + +menu separator # insert an empty line + +# utilities submenu +menu begin ^Troubleshooting + menu title Troubleshooting + +label vesa + menu indent count 5 + menu label Install CentOS Linux 8.0.1905 in ^basic graphics mode + text help + Try this option out if you're having trouble installing + CentOS Linux 8.0.1905. + endtext + kernel vmlinuz + append initrd=initrd.img inst.stage2=hd:LABEL=CentOS-8-BaseOS-x86_64 nomodeset quiet + +label rescue + menu indent count 5 + menu label ^Rescue a CentOS Linux system + text help + If the system will not boot, this lets you access files + and edit config files to try to get it booting again. + endtext + kernel vmlinuz + append initrd=initrd.img inst.stage2=hd:LABEL=CentOS-8-BaseOS-x86_64 rescue quiet + +label memtest + menu label Run a ^memory test + text help + If your system is having issues, a problem with your + system's memory may be the cause. Use this utility to + see if the memory is working correctly. + endtext + kernel memtest + +menu separator # insert an empty line + +label hdd + menu label Boot from ^local drive + localboot 0xffff + +menu separator # insert an empty line +menu separator # insert an empty line + +label returntomain + menu label Return to ^main menu + menu exit + +menu end -- cgit v1.2.3