From e3b4e70148da4f46abb33c38e03504d5246f0075 Mon Sep 17 00:00:00 2001 From: BobR-grayeul Date: Tue, 23 Apr 2024 15:39:56 -0500 Subject: [PATCH 1/4] Example kickstart to start discussions --- rockykde-test.ks | 125 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 125 insertions(+) create mode 100644 rockykde-test.ks diff --git a/rockykde-test.ks b/rockykde-test.ks new file mode 100644 index 0000000..c4ad510 --- /dev/null +++ b/rockykde-test.ks @@ -0,0 +1,125 @@ +# Based on Rocky-8-KDE.ks from https://git.resf.org/sig_core/kickstarts/src/branch/r8 +# +# To boot, you should be able to boot off of a 'boot' ISO, +# or any other installable Rocky ISO. +# After DVD boot, modify kernel line to add pointer to ks hosted via http, e.g.: +# inst.noverifyssl inst.ks=http://1.2.3.4/rockykde-test.ks +# +%pre +# This can be changed to specify installing from a different repo/version ref +# The pre script is used to write the details of the repo data, +# which is included in main kickstart below + +INST_VERS=stg/rocky/8.10-BETA +echo "url --url https://dl.rockylinux.org/$INST_VERS/BaseOS/\$basearch/os/" > /tmp/installVersInfo.ksi +echo "repo --name='BaseOS' --baseurl=http://dl.rockylinux.org/$INST_VERS/BaseOS/\$basearch/os/ --cost=200" >> /tmp/installVersInfo.ksi +echo "repo --name='AppStream' --baseurl=http://dl.rockylinux.org/$INST_VERS/AppStream/\$basearch/os/ --cost=200" >> /tmp/installVersInfo.ksi +echo "repo --name='PowerTools' --baseurl=http://dl.rockylinux.org/$INST_VERS/PowerTools/\$basearch/os/ --cost=200" >> /tmp/installVersInfo.ksi +echo "repo --name='extras' --baseurl=http://dl.rockylinux.org/$INST_VERS/extras/\$basearch/os --cost=200" >> /tmp/installVersInfo.ksi +echo "repo --name='epel' --baseurl=https://dl.fedoraproject.org/pub/epel/8/Everything/\$basearch/ --cost=200" >> /tmp/installVersInfo.ksi +echo "repo --name='epel-modular' --baseurl=https://dl.fedoraproject.org/pub/epel/8/Modular/\$basearch/ --cost=200" >> /tmp/installVersInfo.ksi +%end + +#version=DEVEL +# X Window System configuration information +xconfig --startxonboot +# Keyboard layouts +keyboard 'us' +# Root password +rootpw --iscrypted --lock locked +# Establish a test user that can login initially with defined password here: +user --name=tester --groups=wheel,systemd-journal --password=changeMe! +# System language +lang en_US.UTF-8 +# Shutdown after installation +shutdown +# Network information +network --bootproto=dhcp --device=link --activate +# Firewall configuration +firewall --enabled --service=mdns +# Use network installation +# Now include the URL/repo info from the %pre script +%include /tmp/installVersInfo.ksi + +# System timezone +timezone --utc Etc/UTC +# SELinux configuration +selinux --enforcing +# System services +services --disabled="sshd" --enabled="NetworkManager,ModemManager" +# System bootloader configuration +bootloader --location=mbr +# Clear the Master Boot Record +zerombr +# Partition clearing information +clearpart --all +# Disk partitioning information +# Bare-bones partitioning for this test +part /boot/efi --size=300 --ondisk=/dev/sda --fstype=efi --asprimary +part / --grow --ondisk=/dev/sda + + +%packages +# Package list from Rocky-8-KDI +@^kde-desktop-environment +@anaconda-tools +@base-x +@core +@dial-up +@firefox +@fonts +@guest-desktop-agents +@hardware-support +@kde-apps +@kde-media +@multimedia +@standard +aajohan-comfortaa-fonts +anaconda +anaconda-install-env-deps +chkconfig +dracut-live +epel-release +fuse +glibc-all-langpacks +initscripts +kernel +kernel-modules +kernel-modules-extra +libreoffice-calc +libreoffice-emailmerge +libreoffice-graphicfilter +libreoffice-impress +libreoffice-writer +mariadb-connector-c +mariadb-embedded +mariadb-server +memtest86+ +sddm +sddm-themes +sddm-breeze +sddm-kcm +syslinux +gjs +-@admin-tools +-@input-methods +-desktop-backgrounds-basic +-digikam +-gnome-disk-utility +-hplip +-iok +-isdn4k-utils +-k3b +-kdeaccessibility* +-kipi-plugins +-krusader +-ktorrent +-mpage +-scim* +-system-config-printer +-system-config-services +-system-config-users +-xsane +-xsane-gimp + +%end -- 2.43.5 From 5102da7a4a3a5282d90741a996ffcd445f15dc2a Mon Sep 17 00:00:00 2001 From: BobR-grayeul Date: Thu, 25 Apr 2024 12:39:55 -0500 Subject: [PATCH 2/4] Add rocky9 kickstart --- rocky9kde-test.ks | 127 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 127 insertions(+) create mode 100644 rocky9kde-test.ks diff --git a/rocky9kde-test.ks b/rocky9kde-test.ks new file mode 100644 index 0000000..3eac60f --- /dev/null +++ b/rocky9kde-test.ks @@ -0,0 +1,127 @@ +# Based on Rocky-8-KDE.ks from https://git.resf.org/sig_core/kickstarts/src/branch/r8 +# +# To boot, you should be able to boot off of a 'boot' ISO, +# or any other installable Rocky ISO. +# After DVD boot, modify kernel line to add pointer to ks hosted via http, e.g.: +# inst.noverifyssl inst.ks=http://1.2.3.4/rockykde-test.ks +# +%pre +# This can be changed to specify installing from a different repo/version ref +# The pre script is used to write the details of the repo data, +# which is included in main kickstart below + +INST_VERS=pub/rocky/9.3 +MAJOR_VERS=9 +echo "url --url https://dl.rockylinux.org/$INST_VERS/BaseOS/\$basearch/os/" > /tmp/installVersInfo.ksi +echo "repo --name='BaseOS' --baseurl=http://dl.rockylinux.org/$INST_VERS/BaseOS/\$basearch/os/ --cost=200" >> /tmp/installVersInfo.ksi +echo "repo --name='AppStream' --baseurl=http://dl.rockylinux.org/$INST_VERS/AppStream/\$basearch/os/ --cost=200" >> /tmp/installVersInfo.ksi +echo "repo --name='CRB' --baseurl=http://dl.rockylinux.org/$INST_VERS/CRB/\$basearch/os/ --cost=200" >> /tmp/installVersInfo.ksi +#echo "repo --name='PowerTools' --baseurl=http://dl.rockylinux.org/$INST_VERS/PowerTools/\$basearch/os/ --cost=200" >> /tmp/installVersInfo.ksi +echo "repo --name='extras' --baseurl=http://dl.rockylinux.org/$INST_VERS/extras/\$basearch/os --cost=200" >> /tmp/installVersInfo.ksi +echo "repo --name='epel' --baseurl=https://dl.fedoraproject.org/pub/epel/$MAJOR_VERS/Everything/\$basearch/ --cost=200" >> /tmp/installVersInfo.ksi +#echo "repo --name='epel-modular' --baseurl=https://dl.fedoraproject.org/pub/epel/8/Modular/\$basearch/ --cost=200" >> /tmp/installVersInfo.ksi +%end + +#version=DEVEL +# X Window System configuration information +xconfig --startxonboot +# Keyboard layouts +keyboard 'us' +# Root password +rootpw --iscrypted --lock locked +# Establish a test user that can login initially with defined password here: +user --name=tester --groups=wheel,systemd-journal --password=changeMe! +# System language +lang en_US.UTF-8 +# Shutdown after installation +shutdown +# Network information +network --bootproto=dhcp --device=link --activate +# Firewall configuration +firewall --enabled --service=mdns +# Use network installation +# Now include the URL/repo info from the %pre script +%include /tmp/installVersInfo.ksi + +# System timezone +timezone --utc Etc/UTC +# SELinux configuration +selinux --enforcing +# System services +services --disabled="sshd" --enabled="NetworkManager,ModemManager" +# System bootloader configuration +bootloader --location=mbr +# Clear the Master Boot Record +zerombr +# Partition clearing information +clearpart --all +# Disk partitioning information +# Bare-bones partitioning for this test +part /boot/efi --size=300 --ondisk=/dev/sda --fstype=efi --asprimary +part / --grow --ondisk=/dev/sda + + +%packages +# Package list from Rocky-8-KDI +@^kde-desktop-environment +@anaconda-tools +@base-x +@core +@dial-up +@firefox +@fonts +@guest-desktop-agents +@hardware-support +@kde-apps +@kde-media +@multimedia +@standard +aajohan-comfortaa-fonts +anaconda +anaconda-install-env-deps +chkconfig +dracut-live +epel-release +fuse +glibc-all-langpacks +initscripts +kernel +kernel-modules +kernel-modules-extra +libreoffice-calc +libreoffice-emailmerge +libreoffice-graphicfilter +libreoffice-impress +libreoffice-writer +mariadb-connector-c +mariadb-embedded +mariadb-server +memtest86+ +sddm +sddm-themes +sddm-breeze +sddm-kcm +syslinux +gjs +-@admin-tools +-@input-methods +-desktop-backgrounds-basic +-digikam +-gnome-disk-utility +-hplip +-iok +-isdn4k-utils +-k3b +-kdeaccessibility* +-kipi-plugins +-krusader +-ktorrent +-mpage +-scim* +-system-config-printer +-system-config-services +-system-config-users +-xsane +-xsane-gimp + +%end -- 2.43.5 From 38b9f6a42c46f0d7a484ef99761f4ff083942d82 Mon Sep 17 00:00:00 2001 From: BobR-grayeul Date: Thu, 25 Apr 2024 14:26:23 -0500 Subject: [PATCH 3/4] minor cleanup/consistency changes --- rockykde-test.ks => rocky8kde-test.ks | 5 +++-- rocky9kde-test.ks | 3 +-- 2 files changed, 4 insertions(+), 4 deletions(-) rename rockykde-test.ks => rocky8kde-test.ks (94%) diff --git a/rockykde-test.ks b/rocky8kde-test.ks similarity index 94% rename from rockykde-test.ks rename to rocky8kde-test.ks index c4ad510..3e79652 100644 --- a/rockykde-test.ks +++ b/rocky8kde-test.ks @@ -11,13 +11,14 @@ # which is included in main kickstart below INST_VERS=stg/rocky/8.10-BETA +MAJOR_VERS=8 echo "url --url https://dl.rockylinux.org/$INST_VERS/BaseOS/\$basearch/os/" > /tmp/installVersInfo.ksi echo "repo --name='BaseOS' --baseurl=http://dl.rockylinux.org/$INST_VERS/BaseOS/\$basearch/os/ --cost=200" >> /tmp/installVersInfo.ksi echo "repo --name='AppStream' --baseurl=http://dl.rockylinux.org/$INST_VERS/AppStream/\$basearch/os/ --cost=200" >> /tmp/installVersInfo.ksi echo "repo --name='PowerTools' --baseurl=http://dl.rockylinux.org/$INST_VERS/PowerTools/\$basearch/os/ --cost=200" >> /tmp/installVersInfo.ksi echo "repo --name='extras' --baseurl=http://dl.rockylinux.org/$INST_VERS/extras/\$basearch/os --cost=200" >> /tmp/installVersInfo.ksi -echo "repo --name='epel' --baseurl=https://dl.fedoraproject.org/pub/epel/8/Everything/\$basearch/ --cost=200" >> /tmp/installVersInfo.ksi -echo "repo --name='epel-modular' --baseurl=https://dl.fedoraproject.org/pub/epel/8/Modular/\$basearch/ --cost=200" >> /tmp/installVersInfo.ksi +echo "repo --name='epel' --baseurl=https://dl.fedoraproject.org/pub/epel/$MAJOR_VERS/Everything/\$basearch/ --cost=200" >> /tmp/installVersInfo.ksi +echo "repo --name='epel-modular' --baseurl=https://dl.fedoraproject.org/pub/epel/$MAJOR_VERS/Modular/\$basearch/ --cost=200" >> /tmp/installVersInfo.ksi %end #version=DEVEL diff --git a/rocky9kde-test.ks b/rocky9kde-test.ks index 3eac60f..a6ce804 100644 --- a/rocky9kde-test.ks +++ b/rocky9kde-test.ks @@ -16,10 +16,9 @@ echo "url --url https://dl.rockylinux.org/$INST_VERS/BaseOS/\$basearch/os/" > /t echo "repo --name='BaseOS' --baseurl=http://dl.rockylinux.org/$INST_VERS/BaseOS/\$basearch/os/ --cost=200" >> /tmp/installVersInfo.ksi echo "repo --name='AppStream' --baseurl=http://dl.rockylinux.org/$INST_VERS/AppStream/\$basearch/os/ --cost=200" >> /tmp/installVersInfo.ksi echo "repo --name='CRB' --baseurl=http://dl.rockylinux.org/$INST_VERS/CRB/\$basearch/os/ --cost=200" >> /tmp/installVersInfo.ksi -#echo "repo --name='PowerTools' --baseurl=http://dl.rockylinux.org/$INST_VERS/PowerTools/\$basearch/os/ --cost=200" >> /tmp/installVersInfo.ksi echo "repo --name='extras' --baseurl=http://dl.rockylinux.org/$INST_VERS/extras/\$basearch/os --cost=200" >> /tmp/installVersInfo.ksi echo "repo --name='epel' --baseurl=https://dl.fedoraproject.org/pub/epel/$MAJOR_VERS/Everything/\$basearch/ --cost=200" >> /tmp/installVersInfo.ksi -#echo "repo --name='epel-modular' --baseurl=https://dl.fedoraproject.org/pub/epel/8/Modular/\$basearch/ --cost=200" >> /tmp/installVersInfo.ksi +echo "repo --name='epel-modular' --baseurl=https://dl.fedoraproject.org/pub/epel/$MAJOR_VERS/Modular/\$basearch/ --cost=200" >> /tmp/installVersInfo.ksi %end #version=DEVEL -- 2.43.5 From c8143a7def5775c657c3b2903a6969f9854c273c Mon Sep 17 00:00:00 2001 From: BobR-grayeul Date: Fri, 26 Apr 2024 07:35:13 -0500 Subject: [PATCH 4/4] Fix typo, and change user/password --- rocky8kde-test.ks | 8 +++++--- rocky9kde-test.ks | 8 +++++--- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/rocky8kde-test.ks b/rocky8kde-test.ks index 3e79652..427c864 100644 --- a/rocky8kde-test.ks +++ b/rocky8kde-test.ks @@ -3,7 +3,7 @@ # To boot, you should be able to boot off of a 'boot' ISO, # or any other installable Rocky ISO. # After DVD boot, modify kernel line to add pointer to ks hosted via http, e.g.: -# inst.noverifyssl inst.ks=http://1.2.3.4/rockykde-test.ks +# inst.noverifyssl inst.ks=http://1.2.3.4/rocky8kde-test.ks # %pre # This can be changed to specify installing from a different repo/version ref @@ -12,6 +12,8 @@ INST_VERS=stg/rocky/8.10-BETA MAJOR_VERS=8 +# The URL and repo options are written to a ksi file for later inclusion in main kickstart +# This is done in order to more easily utilize the variables above echo "url --url https://dl.rockylinux.org/$INST_VERS/BaseOS/\$basearch/os/" > /tmp/installVersInfo.ksi echo "repo --name='BaseOS' --baseurl=http://dl.rockylinux.org/$INST_VERS/BaseOS/\$basearch/os/ --cost=200" >> /tmp/installVersInfo.ksi echo "repo --name='AppStream' --baseurl=http://dl.rockylinux.org/$INST_VERS/AppStream/\$basearch/os/ --cost=200" >> /tmp/installVersInfo.ksi @@ -29,7 +31,7 @@ keyboard 'us' # Root password rootpw --iscrypted --lock locked # Establish a test user that can login initially with defined password here: -user --name=tester --groups=wheel,systemd-journal --password=changeMe! +user --name=rocky --groups=wheel,systemd-journal --password=rockylinux # System language lang en_US.UTF-8 # Shutdown after installation @@ -61,7 +63,7 @@ part / --grow --ondisk=/dev/sda %packages -# Package list from Rocky-8-KDI +# Package list from Rocky-8-KDE @^kde-desktop-environment @anaconda-tools @base-x diff --git a/rocky9kde-test.ks b/rocky9kde-test.ks index a6ce804..95bb299 100644 --- a/rocky9kde-test.ks +++ b/rocky9kde-test.ks @@ -3,7 +3,7 @@ # To boot, you should be able to boot off of a 'boot' ISO, # or any other installable Rocky ISO. # After DVD boot, modify kernel line to add pointer to ks hosted via http, e.g.: -# inst.noverifyssl inst.ks=http://1.2.3.4/rockykde-test.ks +# inst.noverifyssl inst.ks=http://1.2.3.4/rocky9kde-test.ks # %pre # This can be changed to specify installing from a different repo/version ref @@ -12,6 +12,8 @@ INST_VERS=pub/rocky/9.3 MAJOR_VERS=9 +# The URL and repo options are written to a ksi file for later inclusion in main kickstart +# This is done in order to more easily utilize the variables above echo "url --url https://dl.rockylinux.org/$INST_VERS/BaseOS/\$basearch/os/" > /tmp/installVersInfo.ksi echo "repo --name='BaseOS' --baseurl=http://dl.rockylinux.org/$INST_VERS/BaseOS/\$basearch/os/ --cost=200" >> /tmp/installVersInfo.ksi echo "repo --name='AppStream' --baseurl=http://dl.rockylinux.org/$INST_VERS/AppStream/\$basearch/os/ --cost=200" >> /tmp/installVersInfo.ksi @@ -29,7 +31,7 @@ keyboard 'us' # Root password rootpw --iscrypted --lock locked # Establish a test user that can login initially with defined password here: -user --name=tester --groups=wheel,systemd-journal --password=changeMe! +user --name=rocky --groups=wheel,systemd-journal --password=rockylinux # System language lang en_US.UTF-8 # Shutdown after installation @@ -61,7 +63,7 @@ part / --grow --ondisk=/dev/sda %packages -# Package list from Rocky-8-KDI +# Package list from Rocky-8-KDE @^kde-desktop-environment @anaconda-tools @base-x -- 2.43.5