From b9585a78e14dd40b30c026fa676cb8a675f070fe Mon Sep 17 00:00:00 2001 From: fangjzh Date: Tue, 13 Jul 2021 07:52:55 +0800 Subject: [PATCH] add Rocky Linux 8.4 support --- perl-xCAT/xCAT/ProfiledNodeUtils.pm | 4 +- perl-xCAT/xCAT/Schema.pm | 4 +- perl-xCAT/xCAT/Utils.pm | 4 +- perl-xCAT/xCAT/data/discinfo.pm | 1 + xCAT-server/lib/perl/xCAT/Postage.pm | 1 + xCAT-server/lib/perl/xCAT/SvrUtils.pm | 6 + xCAT-server/lib/xcat/plugins/anaconda.pm | 20 +- xCAT-server/lib/xcat/plugins/geninitrd.pm | 6 +- xCAT-server/lib/xcat/plugins/imgcapture.pm | 8 + xCAT-server/lib/xcat/plugins/imgport.pm | 1 + xCAT-server/lib/xcat/plugins/ontap.pm | 1 + xCAT-server/lib/xcat/plugins/route.pm | 4 +- .../share/xcat/install/rocky/all.pkglist | 29 +++ xCAT-server/share/xcat/install/rocky/all.tmpl | 159 +++++++++++++++ .../share/xcat/install/rocky/compute.pkglist | 27 +++ .../xcat/install/rocky/compute.rocky8.pkglist | 12 ++ .../xcat/install/rocky/compute.rocky8.tmpl | 59 ++++++ .../share/xcat/install/rocky/compute.tmpl | 157 +++++++++++++++ .../share/xcat/install/rocky/iscsi.pkglist | 27 +++ .../share/xcat/install/rocky/iscsi.tmpl | 158 +++++++++++++++ .../share/xcat/install/rocky/storage.pkglist | 43 ++++ .../share/xcat/install/rocky/storage.tmpl | 186 ++++++++++++++++++ .../share/xcat/install/rocky/xen.pkglist | 31 +++ xCAT-server/share/xcat/install/rocky/xen.tmpl | 155 +++++++++++++++ .../share/xcat/netboot/rocky/compute.exlist | 13 ++ .../share/xcat/netboot/rocky/compute.pkglist | 13 ++ .../rocky/compute.rocky8.x86_64.exlist | 1 + .../rocky/compute.rocky8.x86_64.pkglist | 1 + .../rocky/compute.rocky8.x86_64.postinstall | 1 + xCAT-server/share/xcat/netboot/rocky/dracut | 1 + .../share/xcat/netboot/rocky/dracut_033 | 1 + .../share/xcat/netboot/rocky/dracut_047 | 1 + xCAT-server/share/xcat/netboot/rocky/genimage | 1 + .../share/xcat/netboot/rocky/geninitrd | 1 + .../share/xcat/netboot/rocky/kvm.exlist | 1 + .../share/xcat/netboot/rocky/kvm.pkglist | 1 + .../share/xcat/netboot/rocky/xen.exlist | 1 + .../share/xcat/netboot/rocky/xen.pkglist | 1 + 38 files changed, 1125 insertions(+), 16 deletions(-) create mode 100644 xCAT-server/share/xcat/install/rocky/all.pkglist create mode 100644 xCAT-server/share/xcat/install/rocky/all.tmpl create mode 100644 xCAT-server/share/xcat/install/rocky/compute.pkglist create mode 100644 xCAT-server/share/xcat/install/rocky/compute.rocky8.pkglist create mode 100644 xCAT-server/share/xcat/install/rocky/compute.rocky8.tmpl create mode 100644 xCAT-server/share/xcat/install/rocky/compute.tmpl create mode 100644 xCAT-server/share/xcat/install/rocky/iscsi.pkglist create mode 100644 xCAT-server/share/xcat/install/rocky/iscsi.tmpl create mode 100644 xCAT-server/share/xcat/install/rocky/storage.pkglist create mode 100644 xCAT-server/share/xcat/install/rocky/storage.tmpl create mode 100644 xCAT-server/share/xcat/install/rocky/xen.pkglist create mode 100644 xCAT-server/share/xcat/install/rocky/xen.tmpl create mode 100644 xCAT-server/share/xcat/netboot/rocky/compute.exlist create mode 100644 xCAT-server/share/xcat/netboot/rocky/compute.pkglist create mode 120000 xCAT-server/share/xcat/netboot/rocky/compute.rocky8.x86_64.exlist create mode 120000 xCAT-server/share/xcat/netboot/rocky/compute.rocky8.x86_64.pkglist create mode 120000 xCAT-server/share/xcat/netboot/rocky/compute.rocky8.x86_64.postinstall create mode 120000 xCAT-server/share/xcat/netboot/rocky/dracut create mode 120000 xCAT-server/share/xcat/netboot/rocky/dracut_033 create mode 120000 xCAT-server/share/xcat/netboot/rocky/dracut_047 create mode 120000 xCAT-server/share/xcat/netboot/rocky/genimage create mode 120000 xCAT-server/share/xcat/netboot/rocky/geninitrd create mode 120000 xCAT-server/share/xcat/netboot/rocky/kvm.exlist create mode 120000 xCAT-server/share/xcat/netboot/rocky/kvm.pkglist create mode 120000 xCAT-server/share/xcat/netboot/rocky/xen.exlist create mode 120000 xCAT-server/share/xcat/netboot/rocky/xen.pkglist diff --git a/perl-xCAT/xCAT/ProfiledNodeUtils.pm b/perl-xCAT/xCAT/ProfiledNodeUtils.pm index d12e05fef..b901d2413 100644 --- a/perl-xCAT/xCAT/ProfiledNodeUtils.pm +++ b/perl-xCAT/xCAT/ProfiledNodeUtils.pm @@ -1466,8 +1466,8 @@ sub get_netboot_attr { my $os_arch = $osdistro_tab_entry->{'arch'}; $osdistro_tab->close; - # Treate os name rhel,centos,rhelhpc same as rhels - if ($os_name eq 'centos' || $os_name eq 'rhelhpc' || $os_name eq 'rhel') + # Treate os name rhel,centos,rhelhpc,rocky same as rhels + if ($os_name eq 'centos' || $os_name eq 'rhelhpc' || $os_name eq 'rhel' || $os_name eq 'rocky') { $os_name = 'rhels'; } diff --git a/perl-xCAT/xCAT/Schema.pm b/perl-xCAT/xCAT/Schema.pm index 8e1b0906e..4332e673e 100755 --- a/perl-xCAT/xCAT/Schema.pm +++ b/perl-xCAT/xCAT/Schema.pm @@ -744,7 +744,7 @@ passed as argument rather than by table value', table_desc => 'A few hardware and software characteristics of the nodes.', descriptions => { node => 'The node name or group name.', - os => 'The operating system deployed on this node. Valid values: AIX, rhels*,rhelc*, rhas*,centos*,SL*, fedora*, sles* (where * is the version #). As a special case, if this is set to "boottarget", then it will use the initrd/kernel/parameters specified in the row in the boottarget table in which boottarget.bprofile equals nodetype.profile.', + os => 'The operating system deployed on this node. Valid values: AIX, rhels*,rhelc*, rhas*,centos*,rocky*,SL*, fedora*, sles* (where * is the version #). As a special case, if this is set to "boottarget", then it will use the initrd/kernel/parameters specified in the row in the boottarget table in which boottarget.bprofile equals nodetype.profile.', arch => 'The hardware architecture of this node. Valid values: x86_64, ppc64, x86, ia64.', profile => 'The string to use to locate a kickstart or autoyast template to use for OS deployment of this node. If the provmethod attribute is set to an osimage name, that takes precedence, and profile need not be defined. Otherwise, the os, profile, and arch are used to search for the files in /install/custom first, and then in /opt/xcat/share/xcat.', provmethod => 'The provisioning method for node deployment. The valid values are install, netboot, statelite or an os image name from the osimage table. If an image name is specified, the osimage definition stored in the osimage table and the linuximage table (for Linux) or nimimage table (for AIX) are used to locate the files for templates, pkglists, syncfiles, etc. On Linux, if install, netboot or statelite is specified, the os, profile, and arch are used to search for the files in /install/custom first, and then in /opt/xcat/share/xcat.', @@ -787,7 +787,7 @@ passed as argument rather than by table value', cfmdir => 'CFM directory name for PCM. Set to /install/osimages//cfmdir by PCM. ', profile => 'The node usage category. For example compute, service.', osname => 'Operating system name- AIX or Linux.', - osvers => 'The Linux operating system deployed on this node. Valid values: rhels*,rhelc*, rhas*,centos*,SL*, fedora*, sles* (where * is the version #).', + osvers => 'The Linux operating system deployed on this node. Valid values: rhels*,rhelc*, rhas*,centos*,rocky*,SL*, fedora*, sles* (where * is the version #).', osarch => 'The hardware architecture of this node. Valid values: x86_64, ppc64, x86, ia64.', synclists => 'The fully qualified name of a file containing a list of files to synchronize on the nodes. Can be a comma separated list of multiple synclist files. The synclist generated by PCM named /install/osimages//synclist.cfm is reserved for use only by PCM and should not be edited by the admin.', postscripts => 'Comma separated list of scripts that should be run on this image after diskful installation or diskless boot. For installation of RedHat, CentOS, Fedora, the scripts will be run before the reboot. For installation of SLES, the scripts will be run after the reboot but before the init.d process. For diskless deployment, the scripts will be run at the init.d time, and xCAT will automatically add the list of scripts from the postbootscripts attribute to run after postscripts list. For installation of AIX, the scripts will run after the reboot and acts the same as the postbootscripts attribute. For AIX, use the postbootscripts attribute. See the site table runbootscripts attribute.', diff --git a/perl-xCAT/xCAT/Utils.pm b/perl-xCAT/xCAT/Utils.pm index c3f72767e..c1ecf0d8b 100644 --- a/perl-xCAT/xCAT/Utils.pm +++ b/perl-xCAT/xCAT/Utils.pm @@ -3724,7 +3724,7 @@ sub filter_nostatusupdate { #filter out the nodes which support the node provision status feedback my @nodesfiltered = (); if (exists $inref->{$::STATUS_INSTALLING}) { - map { if ($nttabdata->{$_}->[0]->{os} !~ /(fedora|rh|centos|sles|ubuntu)/) { push @nodesfiltered, $_; } } @{ $inref->{$::STATUS_INSTALLING} }; + map { if ($nttabdata->{$_}->[0]->{os} !~ /(fedora|rh|centos|rocky|sles|ubuntu)/) { push @nodesfiltered, $_; } } @{ $inref->{$::STATUS_INSTALLING} }; delete $inref->{$::STATUS_INSTALLING}; if (@nodesfiltered) { @{ $inref->{$::STATUS_INSTALLING} } = @nodesfiltered; @@ -3733,7 +3733,7 @@ sub filter_nostatusupdate { @nodesfiltered = (); if (exists $inref->{$::STATUS_NETBOOTING}) { - map { if ($nttabdata->{$_}->[0]->{os} !~ /(fedora|rh|centos|sles|ubuntu)/) { push @nodesfiltered, $_; } } @{ $inref->{$::STATUS_NETBOOTING} }; + map { if ($nttabdata->{$_}->[0]->{os} !~ /(fedora|rh|centos|rocky|sles|ubuntu)/) { push @nodesfiltered, $_; } } @{ $inref->{$::STATUS_NETBOOTING} }; delete $inref->{$::STATUS_NETBOOTING}; if (@nodesfiltered) { @{ $inref->{$::STATUS_NETBOOTING} } = @nodesfiltered; diff --git a/perl-xCAT/xCAT/data/discinfo.pm b/perl-xCAT/xCAT/data/discinfo.pm index 445cf5eab..b7dd0e553 100755 --- a/perl-xCAT/xCAT/data/discinfo.pm +++ b/perl-xCAT/xCAT/data/discinfo.pm @@ -14,6 +14,7 @@ require Exporter; use strict; our %distnames = ( + "1624205633.869423" => "rocky8.4", #x86_64 "1578087695.538488" => "centos8.1", #x86_64 "1578087695.537220" => "centos8.1", #ppc64le "1480943823.812754" => "centos7.3", #x86_64 diff --git a/xCAT-server/lib/perl/xCAT/Postage.pm b/xCAT-server/lib/perl/xCAT/Postage.pm index 4ce1188b6..e3ab9a886 100644 --- a/xCAT-server/lib/perl/xCAT/Postage.pm +++ b/xCAT-server/lib/perl/xCAT/Postage.pm @@ -1222,6 +1222,7 @@ sub getImageitems_for_node { if ($os =~ /rh.*/) { $platform = "rh"; } elsif ($os =~ /centos.*/) { $platform = "centos"; } + elsif ($os =~ /rocky.*/) { $platform = "rocky"; } elsif ($os =~ /fedora.*/) { $platform = "fedora"; } elsif ($os =~ /SL.*/) { $platform = "SL"; } elsif ($os =~ /sles.*/) { $platform = "sles"; } diff --git a/xCAT-server/lib/perl/xCAT/SvrUtils.pm b/xCAT-server/lib/perl/xCAT/SvrUtils.pm index 4248cede5..7e2af1d21 100755 --- a/xCAT-server/lib/perl/xCAT/SvrUtils.pm +++ b/xCAT-server/lib/perl/xCAT/SvrUtils.pm @@ -401,6 +401,7 @@ sub getsynclistfile() if ($os) { if ($os =~ /rh.*/) { $platform = "rh"; } elsif ($os =~ /centos.*/) { $platform = "centos"; } + elsif ($os =~ /rocky.*/) { $platform = "rocky"; } elsif ($os =~ /fedora.*/) { $platform = "fedora"; } elsif ($os =~ /sles.*/) { $platform = "sles"; } elsif ($os =~ /SL.*/) { $platform = "SL"; } @@ -431,6 +432,7 @@ sub getsynclistfile() if ($os) { if ($os =~ /rh.*/) { $platform = "rh"; } elsif ($os =~ /centos.*/) { $platform = "centos"; } + elsif ($os =~ /rocky.*/) { $platform = "rocky"; } elsif ($os =~ /fedora.*/) { $platform = "fedora"; } elsif ($os =~ /sles.*/) { $platform = "sles"; } elsif ($os =~ /SL.*/) { $platform = "SL"; } @@ -2163,6 +2165,10 @@ sub getplatform { { $platform = "centos"; } + elsif ($os =~ /rocky.*/) + { + $platform = "rocky"; + } elsif ($os =~ /fedora.*/) { $platform = "fedora"; diff --git a/xCAT-server/lib/xcat/plugins/anaconda.pm b/xCAT-server/lib/xcat/plugins/anaconda.pm index 96845749c..b73fb78ee 100644 --- a/xCAT-server/lib/xcat/plugins/anaconda.pm +++ b/xCAT-server/lib/xcat/plugins/anaconda.pm @@ -41,10 +41,10 @@ sub handled_commands { return { copycd => "anaconda", - mknetboot => "nodetype:os=(^ol[0-9].*)|(centos.*)|(rh.*)|(fedora.*)|(SL.*)", - mkinstall => "nodetype:os=(pkvm.*)|(esxi4.1)|(esx[34].*)|(^ol[0-9].*)|(centos.*)|(rh(?!evh).*)|(fedora.*)|(SL.*)", - mksysclone => "nodetype:os=(esxi4.1)|(esx[34].*)|(^ol[0-9].*)|(centos.*)|(rh(?!evh).*)|(fedora.*)|(SL.*)", - mkstatelite => "nodetype:os=(esx[34].*)|(^ol[0-9].*)|(centos.*)|(rh.*)|(fedora.*)|(SL.*)", + mknetboot => "nodetype:os=(^ol[0-9].*)|(centos.*)|(rocky.*)|(rh.*)|(fedora.*)|(SL.*)", + mkinstall => "nodetype:os=(pkvm.*)|(esxi4.1)|(esx[34].*)|(^ol[0-9].*)|(centos.*)|(rocky.*)|(rh(?!evh).*)|(fedora.*)|(SL.*)", + mksysclone => "nodetype:os=(esxi4.1)|(esx[34].*)|(^ol[0-9].*)|(centos.*)|(rocky.*)|(rh(?!evh).*)|(fedora.*)|(SL.*)", + mkstatelite => "nodetype:os=(esx[34].*)|(^ol[0-9].*)|(centos.*)|(rocky.*)|(rh.*)|(fedora.*)|(SL.*)", }; } @@ -145,7 +145,7 @@ sub process_request sub using_dracut { my $os = shift; - if ($os =~ /(rhels|rhel|centos)(\d+)/) { + if ($os =~ /(rhels|rhel|centos|rocky)(\d+)/) { if ($2 >= 6) { return 1; } @@ -2013,6 +2013,7 @@ sub copycd } if ($distname and $distname !~ /^centos/ + and $distname !~ /^rocky/ and $distname !~ /^fedora/ and $distname !~ /^SL/ and $distname !~ /^ol/ @@ -2065,6 +2066,8 @@ sub copycd } } elsif ($desc and $desc =~ /CentOS Linux (.*)/) { $distname = "centos" . $1; + } elsif ($desc and $desc =~ /Rocky Linux (.*)/) { + $distname = "rocky" . $1; } unless ($dno) { @@ -2139,6 +2142,9 @@ sub copycd if ($_ =~ /family\s*=\s*CentOS/i) { $distname = "centos" . $desc; last; + } elsif ($_ =~ /family\s*=\s*Rocky/i) { + $distname = "rocky" . $desc; + last; } } close($dinfo); @@ -2390,6 +2396,10 @@ sub getplatform { { $platform = "centos"; } + elsif ($os =~ /rocky.*/) + { + $platform = "rocky"; + } elsif ($os =~ /fedora.*/) { $platform = "fedora"; diff --git a/xCAT-server/lib/xcat/plugins/geninitrd.pm b/xCAT-server/lib/xcat/plugins/geninitrd.pm index 14008dfe9..5e1710fd0 100644 --- a/xCAT-server/lib/xcat/plugins/geninitrd.pm +++ b/xCAT-server/lib/xcat/plugins/geninitrd.pm @@ -190,7 +190,7 @@ sub geninitrd { mkpath $tftppath; } if ($arch =~ /x86/) { - if ($osvers =~ /(^ol[0-9].*)|(centos.*)|(rh.*)|(fedora.*)|(SL.*)/) { + if ($osvers =~ /(^ol[0-9].*)|(centos.*)|(rocky.*)|(rh.*)|(fedora.*)|(SL.*)/) { $kernelpath = "$tftppath/vmlinuz"; copy("$pkgdir/images/pxeboot/vmlinuz", $kernelpath); $initrdpath = "$tftppath/initrd.img"; @@ -205,7 +205,7 @@ sub geninitrd { return; } } elsif ($arch =~ /ppc/) { - if ($osvers =~ /(^ol[0-9].*)|(centos.*)|(rh.*)|(fedora.*)|(SL.*)|(pkvm.*)/) { + if ($osvers =~ /(^ol[0-9].*)|(centos.*)|(rocky.*)|(rh.*)|(fedora.*)|(SL.*)|(pkvm.*)/) { $kernelpath = "$tftppath/vmlinuz"; copy("$pkgdir/ppc/ppc64/vmlinuz", $kernelpath); if (-r "$pkgdir/ppc/ppc64/ramdisk.image.gz") { @@ -231,7 +231,7 @@ sub geninitrd { # call the insert_dd function in the anaconda or sles to hack the initrd that: # 1. Get the new kernel from update distro and copy it to /tftpboot # 2. Inject the drivers to initrd in /tftpboot base on the new kernel ver - if ($osvers =~ /(^ol[0-9].*)|(centos.*)|(rh.*)|(fedora.*)|(SL.*)/) { + if ($osvers =~ /(^ol[0-9].*)|(centos.*)|(rocky.*)|(rh.*)|(fedora.*)|(SL.*)/) { require xCAT_plugin::anaconda; xCAT_plugin::anaconda->insert_dd($callback, $osvers, $arch, $initrdpath, $kernelpath, $driverupdatesrc, $netdrivers, $osdisupdir, $ignorekernelchk); } elsif ($osvers =~ /(sles.*)|(suse.*)/) { diff --git a/xCAT-server/lib/xcat/plugins/imgcapture.pm b/xCAT-server/lib/xcat/plugins/imgcapture.pm index 5b302f018..6c11f596c 100755 --- a/xCAT-server/lib/xcat/plugins/imgcapture.pm +++ b/xCAT-server/lib/xcat/plugins/imgcapture.pm @@ -463,6 +463,8 @@ sub getplatform { $platform = "rh"; } elsif ($os =~ m/centos.*/) { $platform = "centos"; + } elsif ($os =~ m/rocky.*/) { + $platform = "rocky"; } elsif ($os =~ m/fedora.*/) { $platform = "fedora"; } elsif ($os =~ m/SL.*/) { @@ -845,6 +847,12 @@ sub getOsVersion { $version =~ s/[^0-9]*([0-9.]+).*/$1/; $os = $os . $version; } + elsif (grep (/Rocky/, @lines)) { + $os = "rocky"; + $version = $lines[0]; + $version =~ s/[^0-9]*([0-9.]+).*/$1/; + $os = $os . $version; + } elsif (grep (/Fedora/, @lines)) { $os = "fedora"; $version = $lines[0]; diff --git a/xCAT-server/lib/xcat/plugins/imgport.pm b/xCAT-server/lib/xcat/plugins/imgport.pm index ee1749fba..ab0446ba9 100644 --- a/xCAT-server/lib/xcat/plugins/imgport.pm +++ b/xCAT-server/lib/xcat/plugins/imgport.pm @@ -1354,6 +1354,7 @@ sub change_profile { if ($os) { if ($os =~ /rh.*/) { $platform = "rh"; } elsif ($os =~ /centos.*/) { $platform = "centos"; } + elsif ($os =~ /rocky.*/) { $platform = "rocky"; } elsif ($os =~ /fedora.*/) { $platform = "fedora"; } elsif ($os =~ /sles.*/) { $platform = "sles"; } elsif ($os =~ /SL.*/) { $platform = "SL"; } diff --git a/xCAT-server/lib/xcat/plugins/ontap.pm b/xCAT-server/lib/xcat/plugins/ontap.pm index 1a50f75d9..1b2b1e67d 100644 --- a/xCAT-server/lib/xcat/plugins/ontap.pm +++ b/xCAT-server/lib/xcat/plugins/ontap.pm @@ -217,6 +217,7 @@ sub create_new_lun { my %osmap = ( 'rh.*' => 'linux', 'centos.*' => 'linux', + 'rocky.*' => 'linux', 'sles.*' => 'linux', 'win2k8' => 'windows_2008', 'win2k3' => 'windows', diff --git a/xCAT-server/lib/xcat/plugins/route.pm b/xCAT-server/lib/xcat/plugins/route.pm index 44f4c042d..659e651e0 100644 --- a/xCAT-server/lib/xcat/plugins/route.pm +++ b/xCAT-server/lib/xcat/plugins/route.pm @@ -669,7 +669,7 @@ sub set_route { } elsif ($os =~ /ubuntu|debian/) { #ubuntu or Debian? addPersistentRoute_Debian($callback, $net, $mask, $gw_ip, $gw, $ifname); } - elsif ($os =~ /rh|fedora|centos/) { #RH, Ferdora, CentOS + elsif ($os =~ /rh|fedora|centos|rocky/) { #RH, Ferdora, CentOS addPersistentRoute_RH($callback, $net, $mask, $gw_ip, $gw, $ifname); } } else { #AIX @@ -756,7 +756,7 @@ sub delete_route { } elsif ($os =~ /ubuntu/) { #ubuntu or Debian? deletePersistentRoute_Debian($callback, $net, $mask, $gw_ip, $gw, $ifname); } - elsif ($os =~ /rh|fedora|centos/) { #RH, Ferdora + elsif ($os =~ /rh|fedora|centos|rocky/) { #RH, Ferdora deletePersistentRoute_RH($callback, $net, $mask, $gw_ip, $gw, $ifname); } } diff --git a/xCAT-server/share/xcat/install/rocky/all.pkglist b/xCAT-server/share/xcat/install/rocky/all.pkglist new file mode 100644 index 000000000..ad82b1a33 --- /dev/null +++ b/xCAT-server/share/xcat/install/rocky/all.pkglist @@ -0,0 +1,29 @@ +#Please make sure there is a space between @ and group name +@Everything +@ Everything +@ System Tools +@ X Window System +@ Legacy Software Development +#kernel-smp +autofs +ksh +tcsh +ntp +tftp +xinetd +rsh +rsh-server +psacct +nfs-utils +net-snmp +rsync +yp-tools +ypserv +ypbind +m4 +sendmail-cf +gdb +binutils +openssh-server +util-linux +compat-libstdc++-33 diff --git a/xCAT-server/share/xcat/install/rocky/all.tmpl b/xCAT-server/share/xcat/install/rocky/all.tmpl new file mode 100644 index 000000000..6e1957872 --- /dev/null +++ b/xCAT-server/share/xcat/install/rocky/all.tmpl @@ -0,0 +1,159 @@ +#egan@us.ibm.com +# +cmdline + +lang en_US +langsupport en_US +network --bootproto dhcp + +# +# Where's the source? +# nfs --server hostname.of.server or IP --dir /path/to/RH/CD/image +# +#nfs --server #XCATVAR:INSTALL_NFS# --dir #XCATVAR:INSTALL_SRC_DIR# +url --url http://#TABLE:noderes:$NODE:nfsserver#/install/#TABLE:nodetype:$NODE:os#/#TABLE:nodetype:$NODE:arch# + +#device ethernet e100 +keyboard "us" + +# +# Clear the MBR +# +zerombr yes + +# +# Wipe out the disk +# +clearpart --all --initlabel +#clearpart --linux + +# +# Customize to fit your needs +# /boot is strongly recommended +# + +#XCAT_PARTITION_START# +#No RAID +part /boot --size 50 --ondisk sda --fstype ext4 +part swap --size 1024 --ondisk sda +part / --size 6000 --grow --ondisk sda --fstype ext4 +#XCAT_PARTITION_END# + +#RAID 0 /scr for performance +#part / --size 1024 --ondisk sda +#part swap --size 512 --ondisk sda +#part /var --size 1024 --ondisk sdb +#part swap --size 512 --ondisk sdb +#part raid.01 --size 1 --grow --ondisk sda +#part raid.02 --size 1 --grow --ondisk sdb +#raid /scr --level 0 --device md0 raid.01 raid.02 + +#Full RAID 1 Sample +#part raid.01 --size 50 --ondisk sda +#part raid.02 --size 50 --ondisk sdb +#raid /boot --level 1 --device md0 raid.01 raid.02 +# +#part raid.11 --size 1024 --ondisk sda +#part raid.12 --size 1024 --ondisk sdb +#raid / --level 1 --device md1 raid.11 raid.12 +# +#part raid.21 --size 1024 --ondisk sda +#part raid.22 --size 1024 --ondisk sdb +#raid /var --level 1 --device md2 raid.21 raid.22 +# +#part raid.31 --size 1024 --ondisk sda +#part raid.32 --size 1024 --ondisk sdb +#raid swap --level 1 --device md3 raid.31 raid.32 +# +#part raid.41 --size 1 --grow --ondisk sda +#part raid.42 --size 1 --grow --ondisk sdb +#raid /scr --level 1 --device md4 raid.41 raid.42 + +# +# bootloader config +# --append +# --useLilo +# --md5pass +# +bootloader + +# +# install or upgrade +# +install + +# +# text mode install (default is graphical) +# +text + +# +# firewall +# +firewall --disabled + +# +# mouse selection +# +#mouse genericps/2 --emulthree +mouse none + +# +# Select a zone +# Add the --utc switch if your hardware clock is set to GMT +# +#timezone US/Hawaii +#timezone US/Pacific +#timezone US/Mountain +#timezone US/Central +#timezone US/Eastern +timezone --utc "#TABLE:site:key=timezone:value#" + +# +# Don't do X +# +skipx + +# +# Geez! +# +key --skip + +# +# To generate an encrypted root password use: +# +# perl -e 'print crypt("blah","Xa") . "\n";'p +# openssl passwd -apr1 -salt xxxxxxxx password +# +# where "blah" is your root password. +# +#rootpw --iscrypted XaLGAVe1C41x2 +#rootpw XaLGAVe1C41x2 --iscrypted +rootpw --iscrypted #CRYPT:passwd:key=system,username=root:password# + +# +# NIS setup: auth --enablenis --nisdomain sensenet +# --nisserver neptune --useshadow --enablemd5 +# +# OR +auth --useshadow --enablemd5 + +# +# SE Linux +# +selinux --disabled + +# +# Reboot after installation +# +reboot + +# +#end of section +# +%packages --resolvedeps +#INCLUDE_DEFAULT_PKGLIST# +%pre +#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/pre.rh# +%post +#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/post.rh# diff --git a/xCAT-server/share/xcat/install/rocky/compute.pkglist b/xCAT-server/share/xcat/install/rocky/compute.pkglist new file mode 100644 index 000000000..85d0c4016 --- /dev/null +++ b/xCAT-server/share/xcat/install/rocky/compute.pkglist @@ -0,0 +1,27 @@ +#Please make sure there is a space between @ and group name +@ Network Servers +@ System Tools +@ X Window System +@ Legacy Software Development +autofs +tcsh +ntp +tftp +xinetd +rsh +rsh-server +psacct +nfs-utils +net-snmp +rsync +yp-tools +ypserv +ypbind +m4 +sendmail-cf +gdb +bzip2 +binutils +openssh-server +util-linux +compat-libstdc++-33 diff --git a/xCAT-server/share/xcat/install/rocky/compute.rocky8.pkglist b/xCAT-server/share/xcat/install/rocky/compute.rocky8.pkglist new file mode 100644 index 000000000..13eb3c39b --- /dev/null +++ b/xCAT-server/share/xcat/install/rocky/compute.rocky8.pkglist @@ -0,0 +1,12 @@ +@^minimal-environment +chrony +net-tools +nfs-utils +openssh-server +rsync +util-linux +wget +python3 +tar +bzip2 +perl-interpreter diff --git a/xCAT-server/share/xcat/install/rocky/compute.rocky8.tmpl b/xCAT-server/share/xcat/install/rocky/compute.rocky8.tmpl new file mode 100644 index 000000000..3719fd0c6 --- /dev/null +++ b/xCAT-server/share/xcat/install/rocky/compute.rocky8.tmpl @@ -0,0 +1,59 @@ +#version=CentOS8 +# Use text install +text +# Use network installation +%include /tmp/repos +# Keyboard layouts +keyboard --vckeymap=us --xlayouts='us' +# System language +lang en_US.UTF-8 + +# Network information +#KICKSTARTNET# +# Root password +rootpw --iscrypted #CRYPT:passwd:key=system,username=root:password# +# Not run the Setup Agent on first boot +firstboot --disable +# Do not configure the X Window System +skipx +# System services +#services --enabled="chronyd" +# System timezone +timezone #TABLE:site:key=timezone:value# --isUtc +# Partition clearing information +zerombr +clearpart --all --initlabel +#XCAT_PARTITION_START# +%include /tmp/partitionfile +#XCAT_PARTITION_END# + +# Do not configure any iptables rules +firewall --disable +selinux --disable +reboot + +%packages +#INCLUDE_DEFAULT_PKGLIST# + +%end + +%anaconda +pwpolicy root --minlen=6 --minquality=1 --notstrict --nochanges --emptyok +pwpolicy user --minlen=6 --minquality=1 --notstrict --nochanges --emptyok +pwpolicy luks --minlen=6 --minquality=1 --notstrict --nochanges --emptyok +%end +%pre +{ +echo "Running Kickstart Pre-installation script..." +#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/pre.rhels8# +} &>>/tmp/pre-install.log +%end +%post --interpreter=/bin/bash +mkdir -p /var/log/xcat/ +cat /tmp/pre-install.log >>/var/log/xcat/xcat.log +{ +echo "Running Kickstart Post-installation script..." +#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/post.xcat.ng# +#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/post.rhels8# +} &>>/var/log/xcat/xcat.log +%end diff --git a/xCAT-server/share/xcat/install/rocky/compute.tmpl b/xCAT-server/share/xcat/install/rocky/compute.tmpl new file mode 100644 index 000000000..70ae2d93d --- /dev/null +++ b/xCAT-server/share/xcat/install/rocky/compute.tmpl @@ -0,0 +1,157 @@ +#egan@us.ibm.com +# +cmdline + +lang en_US +langsupport en_US +network --bootproto dhcp + +# +# Where's the source? +# nfs --server hostname.of.server or IP --dir /path/to/RH/CD/image +# +#nfs --server #XCATVAR:INSTALL_NFS# --dir #XCATVAR:INSTALL_SRC_DIR# +#url --url http://#TABLE:noderes:$NODE:nfsserver#/install/#TABLE:nodetype:$NODE:os#/#TABLE:nodetype:$NODE:arch# + +#INSTALL_SOURCES# + +#device ethernet e100 +keyboard "us" + +# +# Clear the MBR +# +zerombr yes + +# +# Wipe out the disk +# +clearpart --all --initlabel +#clearpart --linux + +# +# Customize to fit your needs +# + +#XCAT_PARTITION_START# +#No RAID +#/boot really significant for this sort of setup nowadays? +#part /boot --size 50 --fstype ext3 +part swap --size 1024 +part / --size 1 --grow --fstype ext3 +#XCAT_PARTITION_END# + +#RAID 0 /scr for performance +#part / --size 1024 --ondisk sda +#part swap --size 512 --ondisk sda +#part /var --size 1024 --ondisk sdb +#part swap --size 512 --ondisk sdb +#part raid.01 --size 1 --grow --ondisk sda +#part raid.02 --size 1 --grow --ondisk sdb +#raid /scr --level 0 --device md0 raid.01 raid.02 + +#Full RAID 1 Sample +#part raid.01 --size 50 --ondisk sda +#part raid.02 --size 50 --ondisk sdb +#raid /boot --level 1 --device md0 raid.01 raid.02 +# +#part raid.11 --size 1024 --ondisk sda +#part raid.12 --size 1024 --ondisk sdb +#raid / --level 1 --device md1 raid.11 raid.12 +# +#part raid.21 --size 1024 --ondisk sda +#part raid.22 --size 1024 --ondisk sdb +#raid /var --level 1 --device md2 raid.21 raid.22 +# +#part raid.31 --size 1024 --ondisk sda +#part raid.32 --size 1024 --ondisk sdb +#raid swap --level 1 --device md3 raid.31 raid.32 +# +#part raid.41 --size 1 --grow --ondisk sda +#part raid.42 --size 1 --grow --ondisk sdb +#raid /scr --level 1 --device md4 raid.41 raid.42 + +# +# bootloader config +# --append +# --useLilo +# --md5pass +# +bootloader + +# +# install or upgrade +# +install + +# +# text mode install (default is graphical) +# +text + +# +# firewall +# +firewall --disabled + +# +# mouse selection +# +#mouse genericps/2 --emulthree +mouse none + +# +# Select a zone +# Add the --utc switch if your hardware clock is set to GMT +# +#timezone US/Hawaii +#timezone US/Pacific +#timezone US/Mountain +#timezone US/Central +#timezone US/Eastern +timezone --utc "#TABLE:site:key=timezone:value#" + +# +# Don't do X +# +skipx + + +# +# To generate an encrypted root password use: +# +# perl -e 'print crypt("blah","Xa") . "\n";'p +# openssl passwd -apr1 -salt xxxxxxxx password +# +# where "blah" is your root password. +# +#rootpw --iscrypted XaLGAVe1C41x2 +#rootpw XaLGAVe1C41x2 --iscrypted +rootpw --iscrypted #CRYPT:passwd:key=system,username=root:password# + +# +# NIS setup: auth --enablenis --nisdomain sensenet +# --nisserver neptune --useshadow --enablemd5 +# +# OR +auth --useshadow --enablemd5 + +# +# SE Linux +# +selinux --disabled + +# +# Reboot after installation +# +reboot + +# +#end of section +# +%packages --resolvedeps +#INCLUDE_DEFAULT_PKGLIST# +%pre +#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/pre.rh# +%post +#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/post.rh# diff --git a/xCAT-server/share/xcat/install/rocky/iscsi.pkglist b/xCAT-server/share/xcat/install/rocky/iscsi.pkglist new file mode 100644 index 000000000..f9c6e72da --- /dev/null +++ b/xCAT-server/share/xcat/install/rocky/iscsi.pkglist @@ -0,0 +1,27 @@ +#Please make sure there is a space between @ and group name +@ Network Servers +@ System Tools +@ X Window System +@ Legacy Software Development +autofs +ksh +tcsh +ntp +tftp +xinetd +rsh +rsh-server +psacct +nfs-utils +net-snmp +rsync +yp-tools +ypserv +ypbind +m4 +sendmail-cf +gdb +binutils +openssh-server +util-linux +compat-libstdc++-33 diff --git a/xCAT-server/share/xcat/install/rocky/iscsi.tmpl b/xCAT-server/share/xcat/install/rocky/iscsi.tmpl new file mode 100644 index 000000000..5d0e3f3a1 --- /dev/null +++ b/xCAT-server/share/xcat/install/rocky/iscsi.tmpl @@ -0,0 +1,158 @@ +#egan@us.ibm.com +# +cmdline + +lang en_US +langsupport en_US +network --bootproto dhcp + +# +# Where's the source? +# nfs --server hostname.of.server or IP --dir /path/to/RH/CD/image +# +#nfs --server #XCATVAR:INSTALL_NFS# --dir #XCATVAR:INSTALL_SRC_DIR# +url --url http://#TABLE:noderes:$NODE:nfsserver#/install/#TABLE:nodetype:$NODE:os#/#TABLE:nodetype:$NODE:arch# + +#device ethernet e100 +keyboard "us" + +# +# Clear the MBR +# +zerombr yes + +# +# Wipe out the disk +# +clearpart --all --initlabel +#clearpart --linux +key --skip + +# +# Customize to fit your needs +# + +iscsiname #TABLE:nodelist:$NODE:node# +iscsi --ipaddr #TABLE:iscsi:$NODE:server# --user "#TABLEBLANKOKAY:iscsi:$NODE:userid#" --password "#TABLEBLANKOKAY:iscsi:$NODE:passwd#" + +#XCAT_PARTITION_START# +#No RAID +#/boot really significant for this sort of setup nowadays? +#part /boot --size 50 --fstype ext3 +part / --size 1 --grow --fstype ext4 +#XCAT_PARTITION_END# + +#RAID 0 /scr for performance +#part / --size 1024 --ondisk sda +#part swap --size 512 --ondisk sda +#part /var --size 1024 --ondisk sdb +#part swap --size 512 --ondisk sdb +#part raid.01 --size 1 --grow --ondisk sda +#part raid.02 --size 1 --grow --ondisk sdb +#raid /scr --level 0 --device md0 raid.01 raid.02 + +#Full RAID 1 Sample +#part raid.01 --size 50 --ondisk sda +#part raid.02 --size 50 --ondisk sdb +#raid /boot --level 1 --device md0 raid.01 raid.02 +# +#part raid.11 --size 1024 --ondisk sda +#part raid.12 --size 1024 --ondisk sdb +#raid / --level 1 --device md1 raid.11 raid.12 +# +#part raid.21 --size 1024 --ondisk sda +#part raid.22 --size 1024 --ondisk sdb +#raid /var --level 1 --device md2 raid.21 raid.22 +# +#part raid.31 --size 1024 --ondisk sda +#part raid.32 --size 1024 --ondisk sdb +#raid swap --level 1 --device md3 raid.31 raid.32 +# +#part raid.41 --size 1 --grow --ondisk sda +#part raid.42 --size 1 --grow --ondisk sdb +#raid /scr --level 1 --device md4 raid.41 raid.42 + +# +# bootloader config +# --append +# --useLilo +# --md5pass +# +bootloader + +# +# install or upgrade +# +install + +# +# text mode install (default is graphical) +# +text + +# +# firewall +# +firewall --disabled + +# +# mouse selection +# +#mouse genericps/2 --emulthree +mouse none + +# +# Select a zone +# Add the --utc switch if your hardware clock is set to GMT +# +#timezone US/Hawaii +#timezone US/Pacific +#timezone US/Mountain +#timezone US/Central +#timezone US/Eastern +timezone --utc "#TABLE:site:key=timezone:value#" + +# +# Don't do X +# +skipx + + +# +# To generate an encrypted root password use: +# +# perl -e 'print crypt("blah","Xa") . "\n";'p +# openssl passwd -apr1 -salt xxxxxxxx password +# +# where "blah" is your root password. +# +#rootpw --iscrypted XaLGAVe1C41x2 +#rootpw XaLGAVe1C41x2 --iscrypted +rootpw --iscrypted #CRYPT:passwd:key=system,username=root:password# + +# +# NIS setup: auth --enablenis --nisdomain sensenet +# --nisserver neptune --useshadow --enablemd5 +# +# OR +auth --useshadow --enablemd5 + +# +# SE Linux +# +selinux --disabled + +# +# Reboot after installation +# +reboot + +# +#end of section +# +%packages --resolvedeps +#INCLUDE_DEFAULT_PKGLIST# +%pre +#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/pre.rh# +%post +#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/post.rh.iscsi# diff --git a/xCAT-server/share/xcat/install/rocky/storage.pkglist b/xCAT-server/share/xcat/install/rocky/storage.pkglist new file mode 100644 index 000000000..2c392ecc5 --- /dev/null +++ b/xCAT-server/share/xcat/install/rocky/storage.pkglist @@ -0,0 +1,43 @@ +#Please make sure there is a space between @ and group name +@Everything +@ Everything +@ System Tools +@ X Window System +@ Legacy Software Development +autofs +ksh +tcsh +ntp +tftp +xinetd +rsh +rsh-server +psacct +nfs-utils +net-snmp +rsync +yp-tools +ypserv +ypbind +m4 +sendmail-cf +gdb +binutils +openssh-server +util-linux +compat-libstdc++-33 +-kernel-xen +-kmod-cmirror-xen +-xen-devel +-kmod-gnbd-xen +-xen +-libvirt-devel +-libvirt-cim +-gnome-applet-vm +-kmod-gfs-xen +-xen-libs +-libvirt +-virt-viewer +-libvirt-python +-python-virtinst +-virt-manager diff --git a/xCAT-server/share/xcat/install/rocky/storage.tmpl b/xCAT-server/share/xcat/install/rocky/storage.tmpl new file mode 100644 index 000000000..79624cf56 --- /dev/null +++ b/xCAT-server/share/xcat/install/rocky/storage.tmpl @@ -0,0 +1,186 @@ +#vallard@benincosa.org +# this storage script allows you to install even if FC is installed because +# it removes the drivers for qlogic. +# tested on CentOS 5.3 +cmdline + +lang en_US +langsupport en_US +network --bootproto dhcp + +# +# Where's the source? +# nfs --server hostname.of.server or IP --dir /path/to/RH/CD/image +# +#nfs --server #XCATVAR:INSTALL_NFS# --dir #XCATVAR:INSTALL_SRC_DIR# +url --url http://#TABLE:noderes:$NODE:nfsserver#/install/#TABLE:nodetype:$NODE:os#/#TABLE:nodetype:$NODE:arch# + +#device ethernet e100 +keyboard "us" + +# +# Clear the MBR +# +zerombr yes + +# +# Wipe out the disk +# +clearpart --all --initlabel +#clearpart --linux + +# +# Customize to fit your needs +# /boot is strongly recommended +# + +#XCAT_PARTITION_START# +#No RAID +part /boot --size 100 --ondisk sda --fstype ext4 +part swap --size 2048 --ondisk sda +part / --size 6000 --grow --ondisk sda --fstype ext4 +#XCAT_PARTITION_END# + +#RAID 0 /scr for performance +#part / --size 1024 --ondisk sda +#part swap --size 512 --ondisk sda +#part /var --size 1024 --ondisk sdb +#part swap --size 512 --ondisk sdb +#part raid.01 --size 1 --grow --ondisk sda +#part raid.02 --size 1 --grow --ondisk sdb +#raid /scr --level 0 --device md0 raid.01 raid.02 + +#Full RAID 1 Sample +#part raid.01 --size 50 --ondisk sda +#part raid.02 --size 50 --ondisk sdb +#raid /boot --level 1 --device md0 raid.01 raid.02 +# +#part raid.11 --size 1024 --ondisk sda +#part raid.12 --size 1024 --ondisk sdb +#raid / --level 1 --device md1 raid.11 raid.12 +# +#part raid.21 --size 1024 --ondisk sda +#part raid.22 --size 1024 --ondisk sdb +#raid /var --level 1 --device md2 raid.21 raid.22 +# +#part raid.31 --size 1024 --ondisk sda +#part raid.32 --size 1024 --ondisk sdb +#raid swap --level 1 --device md3 raid.31 raid.32 +# +#part raid.41 --size 1 --grow --ondisk sda +#part raid.42 --size 1 --grow --ondisk sdb +#raid /scr --level 1 --device md4 raid.41 raid.42 + +# +# bootloader config +# --append +# --useLilo +# --md5pass +# +bootloader + +# +# install or upgrade +# +install + +# +# text mode install (default is graphical) +# +text + +# +# firewall +# +firewall --disabled + +# +# mouse selection +# +#mouse genericps/2 --emulthree +mouse none + +# +# Select a zone +# Add the --utc switch if your hardware clock is set to GMT +# +#timezone US/Hawaii +#timezone US/Pacific +#timezone US/Mountain +#timezone US/Central +#timezone US/Eastern +timezone --utc "#TABLE:site:key=timezone:value#" + +# +# Don't do X +# +skipx + +# +# Geez! +# +key --skip + +# +# To generate an encrypted root password use: +# +# perl -e 'print crypt("blah","Xa") . "\n";'p +# openssl passwd -apr1 -salt xxxxxxxx password +# +# where "blah" is your root password. +# +#rootpw --iscrypted XaLGAVe1C41x2 +#rootpw XaLGAVe1C41x2 --iscrypted +rootpw --iscrypted #CRYPT:passwd:key=system,username=root:password# + +# +# NIS setup: auth --enablenis --nisdomain sensenet +# --nisserver neptune --useshadow --enablemd5 +# +# OR +auth --useshadow --enablemd5 + +# +# SE Linux +# +selinux --disabled + +# +# Reboot after installation +# +reboot + +# +#end of section +# +%packages --resolvedeps +#INCLUDE_DEFAULT_PKGLIST# + +%pre +#!/bin/sh +# This will remove the loaded HBA modules from the kernel +remove_qla(){ +for i in $(lsmod | grep qla | awk .{print $1.}); do +echo Will remove: $i >> /dev/tty1 +rmmod $i +sleep 1 +done +} + +remove_lpfc(){ +for i in $(lsmod | grep lpfc | awk .{print $1.}); do +echo Will remove: $i >> /dev/tty1 +rmmod $i +sleep 1 +done +} + +remove_qla +sleep 2 +remove_qla +remove_lpfc +echo "All qla modules removed" +sleep 10 +#INCLUDE:../scripts/pre.rh# +%post +#INCLUDE:../scripts/post.rh# diff --git a/xCAT-server/share/xcat/install/rocky/xen.pkglist b/xCAT-server/share/xcat/install/rocky/xen.pkglist new file mode 100644 index 000000000..6d3f1c8aa --- /dev/null +++ b/xCAT-server/share/xcat/install/rocky/xen.pkglist @@ -0,0 +1,31 @@ +#Please make sure there is a space between @ and group name +@ Network Servers +@ System Tools +@ X Window System +@ Legacy Software Development +autofs +uucp +xen +libvirt +kernel-xen +tcsh +ntp +tftp +xinetd +rsh +rsh-server +psacct +nfs-utils +net-snmp +rsync +yp-tools +ypserv +ypbind +m4 +sendmail-cf +gdb +bzip2 +binutils +openssh-server +util-linux +compat-libstdc++-33 diff --git a/xCAT-server/share/xcat/install/rocky/xen.tmpl b/xCAT-server/share/xcat/install/rocky/xen.tmpl new file mode 100644 index 000000000..b75924668 --- /dev/null +++ b/xCAT-server/share/xcat/install/rocky/xen.tmpl @@ -0,0 +1,155 @@ +#egan@us.ibm.com +# +cmdline + +lang en_US +langsupport en_US +network --bootproto dhcp + +# +# Where's the source? +# nfs --server hostname.of.server or IP --dir /path/to/RH/CD/image +# +#nfs --server #XCATVAR:INSTALL_NFS# --dir #XCATVAR:INSTALL_SRC_DIR# +url --url http://#TABLE:noderes:$NODE:nfsserver#/install/#TABLE:nodetype:$NODE:os#/#TABLE:nodetype:$NODE:arch# + +#device ethernet e100 +keyboard "us" + +# +# Clear the MBR +# +zerombr yes + +# +# Wipe out the disk +# +clearpart --all --initlabel +#clearpart --linux + +# +# Customize to fit your needs +# + +#XCAT_PARTITION_START# +#No RAID +#/boot really significant for this sort of setup nowadays? +#part /boot --size 50 --fstype ext3 +part swap --size 1024 +part / --size 1 --grow --fstype ext4 +#XCAT_PARTITION_END# + +#RAID 0 /scr for performance +#part / --size 1024 --ondisk sda +#part swap --size 512 --ondisk sda +#part /var --size 1024 --ondisk sdb +#part swap --size 512 --ondisk sdb +#part raid.01 --size 1 --grow --ondisk sda +#part raid.02 --size 1 --grow --ondisk sdb +#raid /scr --level 0 --device md0 raid.01 raid.02 + +#Full RAID 1 Sample +#part raid.01 --size 50 --ondisk sda +#part raid.02 --size 50 --ondisk sdb +#raid /boot --level 1 --device md0 raid.01 raid.02 +# +#part raid.11 --size 1024 --ondisk sda +#part raid.12 --size 1024 --ondisk sdb +#raid / --level 1 --device md1 raid.11 raid.12 +# +#part raid.21 --size 1024 --ondisk sda +#part raid.22 --size 1024 --ondisk sdb +#raid /var --level 1 --device md2 raid.21 raid.22 +# +#part raid.31 --size 1024 --ondisk sda +#part raid.32 --size 1024 --ondisk sdb +#raid swap --level 1 --device md3 raid.31 raid.32 +# +#part raid.41 --size 1 --grow --ondisk sda +#part raid.42 --size 1 --grow --ondisk sdb +#raid /scr --level 1 --device md4 raid.41 raid.42 + +# +# bootloader config +# --append +# --useLilo +# --md5pass +# +bootloader + +# +# install or upgrade +# +install + +# +# text mode install (default is graphical) +# +text + +# +# firewall +# +firewall --disabled + +# +# mouse selection +# +#mouse genericps/2 --emulthree +mouse none + +# +# Select a zone +# Add the --utc switch if your hardware clock is set to GMT +# +#timezone US/Hawaii +#timezone US/Pacific +#timezone US/Mountain +#timezone US/Central +#timezone US/Eastern +timezone --utc "#TABLE:site:key=timezone:value#" + +# +# Don't do X +# +skipx + + +# +# To generate an encrypted root password use: +# +# perl -e 'print crypt("blah","Xa") . "\n";'p +# openssl passwd -apr1 -salt xxxxxxxx password +# +# where "blah" is your root password. +# +#rootpw --iscrypted XaLGAVe1C41x2 +#rootpw XaLGAVe1C41x2 --iscrypted +rootpw --iscrypted #CRYPT:passwd:key=system,username=root:password# + +# +# NIS setup: auth --enablenis --nisdomain sensenet +# --nisserver neptune --useshadow --enablemd5 +# +# OR +auth --useshadow --enablemd5 + +# +# SE Linux +# +selinux --disabled + +# +# Reboot after installation +# +reboot + +# +#end of section +# +%packages +#INCLUDE_DEFAULT_PKGLIST# +%pre +#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/pre.rh# +%post +#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/post.rh# diff --git a/xCAT-server/share/xcat/netboot/rocky/compute.exlist b/xCAT-server/share/xcat/netboot/rocky/compute.exlist new file mode 100644 index 000000000..7241cb38b --- /dev/null +++ b/xCAT-server/share/xcat/netboot/rocky/compute.exlist @@ -0,0 +1,13 @@ +./usr/share/man/* +./usr/share/locale/* +./usr/share/i18n* +./var/cache/yum* +./usr/share/doc* +./usr/share/gnome* +./usr/share/zoneinfo* +./usr/share/cracklib* +./usr/share/info* +./usr/share/omf* +./usr/lib/locale* +./usr/lib/perl5* +./boot* diff --git a/xCAT-server/share/xcat/netboot/rocky/compute.pkglist b/xCAT-server/share/xcat/netboot/rocky/compute.pkglist new file mode 100644 index 000000000..0fd45355a --- /dev/null +++ b/xCAT-server/share/xcat/netboot/rocky/compute.pkglist @@ -0,0 +1,13 @@ +bash +nfs-utils +openssl +dhclient +kernel +openssh-server +openssh-clients +busybox-anaconda +wget +rsync +tar +gzip +xz diff --git a/xCAT-server/share/xcat/netboot/rocky/compute.rocky8.x86_64.exlist b/xCAT-server/share/xcat/netboot/rocky/compute.rocky8.x86_64.exlist new file mode 120000 index 000000000..a6d9c0135 --- /dev/null +++ b/xCAT-server/share/xcat/netboot/rocky/compute.rocky8.x86_64.exlist @@ -0,0 +1 @@ +../rh/compute.rhels8.x86_64.exlist \ No newline at end of file diff --git a/xCAT-server/share/xcat/netboot/rocky/compute.rocky8.x86_64.pkglist b/xCAT-server/share/xcat/netboot/rocky/compute.rocky8.x86_64.pkglist new file mode 120000 index 000000000..5ecd4c4d1 --- /dev/null +++ b/xCAT-server/share/xcat/netboot/rocky/compute.rocky8.x86_64.pkglist @@ -0,0 +1 @@ +../rh/compute.rhels8.x86_64.pkglist \ No newline at end of file diff --git a/xCAT-server/share/xcat/netboot/rocky/compute.rocky8.x86_64.postinstall b/xCAT-server/share/xcat/netboot/rocky/compute.rocky8.x86_64.postinstall new file mode 120000 index 000000000..3e16d254e --- /dev/null +++ b/xCAT-server/share/xcat/netboot/rocky/compute.rocky8.x86_64.postinstall @@ -0,0 +1 @@ +../rh/compute.rhels8.x86_64.postinstall \ No newline at end of file diff --git a/xCAT-server/share/xcat/netboot/rocky/dracut b/xCAT-server/share/xcat/netboot/rocky/dracut new file mode 120000 index 000000000..11bde8445 --- /dev/null +++ b/xCAT-server/share/xcat/netboot/rocky/dracut @@ -0,0 +1 @@ +../rh/dracut \ No newline at end of file diff --git a/xCAT-server/share/xcat/netboot/rocky/dracut_033 b/xCAT-server/share/xcat/netboot/rocky/dracut_033 new file mode 120000 index 000000000..0e9de994a --- /dev/null +++ b/xCAT-server/share/xcat/netboot/rocky/dracut_033 @@ -0,0 +1 @@ +../rh/dracut_033 \ No newline at end of file diff --git a/xCAT-server/share/xcat/netboot/rocky/dracut_047 b/xCAT-server/share/xcat/netboot/rocky/dracut_047 new file mode 120000 index 000000000..fe26fce05 --- /dev/null +++ b/xCAT-server/share/xcat/netboot/rocky/dracut_047 @@ -0,0 +1 @@ +../rh/dracut_047 \ No newline at end of file diff --git a/xCAT-server/share/xcat/netboot/rocky/genimage b/xCAT-server/share/xcat/netboot/rocky/genimage new file mode 120000 index 000000000..1c50b1848 --- /dev/null +++ b/xCAT-server/share/xcat/netboot/rocky/genimage @@ -0,0 +1 @@ +../rh/genimage \ No newline at end of file diff --git a/xCAT-server/share/xcat/netboot/rocky/geninitrd b/xCAT-server/share/xcat/netboot/rocky/geninitrd new file mode 120000 index 000000000..2271c3f0f --- /dev/null +++ b/xCAT-server/share/xcat/netboot/rocky/geninitrd @@ -0,0 +1 @@ +genimage \ No newline at end of file diff --git a/xCAT-server/share/xcat/netboot/rocky/kvm.exlist b/xCAT-server/share/xcat/netboot/rocky/kvm.exlist new file mode 120000 index 000000000..c86878d02 --- /dev/null +++ b/xCAT-server/share/xcat/netboot/rocky/kvm.exlist @@ -0,0 +1 @@ +../rh/kvm.exlist \ No newline at end of file diff --git a/xCAT-server/share/xcat/netboot/rocky/kvm.pkglist b/xCAT-server/share/xcat/netboot/rocky/kvm.pkglist new file mode 120000 index 000000000..010315c63 --- /dev/null +++ b/xCAT-server/share/xcat/netboot/rocky/kvm.pkglist @@ -0,0 +1 @@ +../rh/kvm.rhels5.4.pkglist \ No newline at end of file diff --git a/xCAT-server/share/xcat/netboot/rocky/xen.exlist b/xCAT-server/share/xcat/netboot/rocky/xen.exlist new file mode 120000 index 000000000..f968576ce --- /dev/null +++ b/xCAT-server/share/xcat/netboot/rocky/xen.exlist @@ -0,0 +1 @@ +../rh/xen.exlist \ No newline at end of file diff --git a/xCAT-server/share/xcat/netboot/rocky/xen.pkglist b/xCAT-server/share/xcat/netboot/rocky/xen.pkglist new file mode 120000 index 000000000..b8f195934 --- /dev/null +++ b/xCAT-server/share/xcat/netboot/rocky/xen.pkglist @@ -0,0 +1 @@ +../rh/xen.pkglist \ No newline at end of file