From 807e82dde40cc66a5a91b65f8e8ac9f75dffddb8 Mon Sep 17 00:00:00 2001 From: Vendula Poncova Date: Mon, 27 Nov 2023 12:02:12 +0100 Subject: [PATCH 1/3] docs: Remove the bootupd workaround from example.ks The installer supports bootupd now, so we can drop the workaround. See: https://github.com/rhinstaller/anaconda/pull/5298/ --- docs/example.ks | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/docs/example.ks b/docs/example.ks index f6d251f1..176169f7 100644 --- a/docs/example.ks +++ b/docs/example.ks @@ -19,14 +19,3 @@ rootpw --iscrypted locked # Add your example SSH key here! #sshkey --username root "ssh-ed25519 demo@example.com" reboot - -# Workarounds until https://github.com/rhinstaller/anaconda/pull/5298/ lands -bootloader --location=none --disabled -%post --erroronfail -set -euo pipefail -# Work around anaconda wanting a root password -passwd -l root -rootdevice=$(findmnt -nv -o SOURCE /) -device=$(lsblk -n -o PKNAME ${rootdevice}) -/usr/bin/bootupctl backend install --auto --with-static-configs --device /dev/${device} / -%end From 60d1992cb9bb13577c00df1dc092cfd2225ec03d Mon Sep 17 00:00:00 2001 From: Vendula Poncova Date: Mon, 27 Nov 2023 11:14:00 +0100 Subject: [PATCH 2/3] docs: Use reqpart in example.ks The partitioning defined in the example kickstart file suggests that the installer supports hybrid boot. That's misleading and not true. Let's use the `reqpart` kickstart command to automatically create partitions required by the detected platform instead of creating all of them for all platforms. Note: The `reqpart` command doesn't work with `bootloader --location=none` or `bootloader --disabled`, so this commit depends on the installer's support for bootupd: https://github.com/rhinstaller/anaconda/pull/5298/ --- docs/example.ks | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/docs/example.ks b/docs/example.ks index 176169f7..8606ce50 100644 --- a/docs/example.ks +++ b/docs/example.ks @@ -2,11 +2,9 @@ text # Basic partitioning clearpart --all --initlabel --disklabel=gpt -part prepboot --size=4 --fstype=prepboot -part biosboot --size=1 --fstype=biosboot -part /boot/efi --size=100 --fstype=efi -part /boot --size=1000 --fstype=ext4 --label=boot +part /boot --size=1000 --fstype=ext4 --label=boot part / --grow --fstype xfs +reqpart ostreecontainer --url quay.io/centos-bootc/fedora-bootc:eln --no-signature-verification # Or: quay.io/centos-bootc/centos-bootc-dev:stream9 From 4886760829a580620cf69ddcd59cc0668a8c042c Mon Sep 17 00:00:00 2001 From: Vendula Poncova Date: Thu, 7 Dec 2023 10:19:41 +0100 Subject: [PATCH 3/3] docs: Mention releases that support example.ks The kickstart file works with a Fedora 40+ (or ELN) installer ISO as it requires https://github.com/rhinstaller/anaconda/pull/5342. Co-authored-by: Colin Walters --- docs/example.ks | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/example.ks b/docs/example.ks index 8606ce50..7b06a492 100644 --- a/docs/example.ks +++ b/docs/example.ks @@ -1,5 +1,7 @@ text - +# NOTE: As of the time of this writing, this kickstart only +# works with a Fedora 40+ (or ELN) installer ISO as it requires +# https://github.com/rhinstaller/anaconda/pull/5342 # Basic partitioning clearpart --all --initlabel --disklabel=gpt part /boot --size=1000 --fstype=ext4 --label=boot