diff --git a/README.md b/README.md index d06efe7..4a48a7a 100644 --- a/README.md +++ b/README.md @@ -1 +1,53 @@ -R8 specific kickstarts +# R8 specific kickstarts + +This branch has Rocky Linux 8 specific kickstarts. These kickstarts vary +between cloud images and live images provided in our repositories and +mirrors. + +## Building Live Images + +To build live images, you will need to use `livecd-creator` or +`livemedia-creator`. The former is simpler to use and generally works without +many issues. The latter can be a bit more tricky to work with and typically +runs the installer virtually. However, it can be used without a virtual machine +like in a mock shell. + +### Using livemedia-creator + +To use livemedia-creator without using virt, you can use a mock shell. To +setup a mock chroot for the purpose of building a live image, you would +set it up like so: + +``` +# Install mock if you haven't already +% dnf install epel-release -y +% dnf install mock -y + +# Add a user to the mock group +% usermod -a -G mock user + +# As the user, setup the mock environment +% mock -r rocky-8-x86_64 --init +% mock -r rocky-8-x86_64 --install lorax-lmc-novirt vim-minimal pykickstart git +# You will need to be in permissive mode temporarily +% setenforce 0 +# Enter the shell +% mock -r rocky-8-x86_64 --shell --isolation=simple --enable-network + +# Clone the kickstarts and run an installation +% git clone https://github.com/rocky-linux/kickstarts +% cd kickstarts +% livemedia-creator --ks Rocky-8-Workstation.ks \ + --no-virt \ + --resultdir /var/lmc \ + --project="Rocky Linux" \ + --make-iso \ + --volid Rocky-Workstation-8 \ + --iso-only \ + --iso-name Rocky-Workstation-8-x86_64.iso \ + --releasever=8 \ + --nomacboot # This option is important to set, mkfs.hfsplus is not available +``` + +With the example above, all of the results will appear in +`/var/lib/mock/rocky-8-x86_64/root/var/lmc`. diff --git a/Rocky-8-KDE.ks b/Rocky-8-KDE.ks index 27acde6..84b334e 100644 --- a/Rocky-8-KDE.ks +++ b/Rocky-8-KDE.ks @@ -12,8 +12,6 @@ lang en_US.UTF-8 shutdown # Network information network --bootproto=dhcp --device=link --activate -# System authorization information -auth --useshadow --passalgo=sha512 # Firewall configuration firewall --enabled --service=mdns # Use network installation diff --git a/Rocky-8-Workstation-Lite.ks b/Rocky-8-Workstation-Lite.ks index 8f51dee..3279a07 100644 --- a/Rocky-8-Workstation-Lite.ks +++ b/Rocky-8-Workstation-Lite.ks @@ -12,8 +12,6 @@ lang en_US.UTF-8 shutdown # Network information network --bootproto=dhcp --device=link --activate -# System authorization information -auth --useshadow --passalgo=sha512 # Firewall configuration firewall --enabled --service=mdns # Use network installation diff --git a/Rocky-8-Workstation-Mainline.ks b/Rocky-8-Workstation-Mainline.ks index b4400bb..c558357 100644 --- a/Rocky-8-Workstation-Mainline.ks +++ b/Rocky-8-Workstation-Mainline.ks @@ -14,8 +14,6 @@ shutdown timezone US/Eastern # Network information network --bootproto=dhcp --device=link --activate -# System authorization information -auth --useshadow --passalgo=sha512 # Firewall configuration firewall --enabled --service=mdns # SELinux configuration diff --git a/Rocky-8-Workstation.ks b/Rocky-8-Workstation.ks index 2b4547e..6552d2f 100644 --- a/Rocky-8-Workstation.ks +++ b/Rocky-8-Workstation.ks @@ -12,8 +12,6 @@ lang en_US.UTF-8 shutdown # Network information network --bootproto=dhcp --device=link --activate -# System authorization information -auth --useshadow --passalgo=sha512 # Firewall configuration firewall --enabled --service=mdns # Use network installation diff --git a/Rocky-8-XFCE.ks b/Rocky-8-XFCE.ks index 8ace92f..0078931 100644 --- a/Rocky-8-XFCE.ks +++ b/Rocky-8-XFCE.ks @@ -12,8 +12,6 @@ lang en_US.UTF-8 shutdown # Network information network --bootproto=dhcp --device=link --activate -# System authorization information -auth --useshadow --passalgo=sha512 # Firewall configuration firewall --enabled --service=mdns # Use network installation diff --git a/live/8/prod/rocky-live-base-spin.ks b/live/8/prod/rocky-live-base-spin.ks index be55d80..4831b29 100644 --- a/live/8/prod/rocky-live-base-spin.ks +++ b/live/8/prod/rocky-live-base-spin.ks @@ -7,7 +7,6 @@ lang en_US.UTF-8 keyboard us timezone US/Eastern -auth --useshadow --passalgo=sha512 selinux --enforcing firewall --enabled --service=mdns xconfig --startxonboot diff --git a/live/8/prod/rocky-live-base.ks b/live/8/prod/rocky-live-base.ks index 84039f6..abb59f6 100644 --- a/live/8/prod/rocky-live-base.ks +++ b/live/8/prod/rocky-live-base.ks @@ -6,7 +6,6 @@ lang en_US.UTF-8 keyboard us timezone US/Eastern -auth --useshadow --passalgo=sha512 selinux --enforcing firewall --enabled --service=mdns xconfig --startxonboot diff --git a/live/8/stage/mainline/rocky-live-base.ks b/live/8/stage/mainline/rocky-live-base.ks index 52d09db..b3e05cc 100644 --- a/live/8/stage/mainline/rocky-live-base.ks +++ b/live/8/stage/mainline/rocky-live-base.ks @@ -6,7 +6,6 @@ lang en_US.UTF-8 keyboard us timezone US/Eastern -auth --useshadow --passalgo=sha512 selinux --enforcing firewall --enabled --service=mdns xconfig --startxonboot diff --git a/live/8/stage/rocky-live-base-spin.ks b/live/8/stage/rocky-live-base-spin.ks index be55d80..4831b29 100644 --- a/live/8/stage/rocky-live-base-spin.ks +++ b/live/8/stage/rocky-live-base-spin.ks @@ -7,7 +7,6 @@ lang en_US.UTF-8 keyboard us timezone US/Eastern -auth --useshadow --passalgo=sha512 selinux --enforcing firewall --enabled --service=mdns xconfig --startxonboot diff --git a/live/8/stage/rocky-live-base.ks b/live/8/stage/rocky-live-base.ks index 84039f6..abb59f6 100644 --- a/live/8/stage/rocky-live-base.ks +++ b/live/8/stage/rocky-live-base.ks @@ -6,7 +6,6 @@ lang en_US.UTF-8 keyboard us timezone US/Eastern -auth --useshadow --passalgo=sha512 selinux --enforcing firewall --enabled --service=mdns xconfig --startxonboot