From 65c29ff34b89ded943198f83a528da2a5b88763d Mon Sep 17 00:00:00 2001 From: renner <80410025+renner0e@users.noreply.github.com> Date: Sun, 4 Oct 2026 15:36:27 +0000 Subject: [PATCH] feat: verify kickstart file syntax (#102) --- iso_files/build.sh | 13 +++++++++---- iso_files/configure_iso_anaconda.sh | 5 +++++ 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/iso_files/build.sh b/iso_files/build.sh index 94050eb..b941dde 100755 --- a/iso_files/build.sh +++ b/iso_files/build.sh @@ -50,7 +50,13 @@ fi # Clean up the temporary storage configuration so that runtime podman uses the default rm -f /etc/containers/storage.conf -# Install required packages + +ANACONDA=( + anaconda-live + anaconda-webui + pykickstart # verify ks files +) + dnf install -y \ dracut-live \ livesys-scripts \ @@ -58,11 +64,10 @@ dnf install -y \ jq \ rsync \ desktop-file-utils \ - anaconda-live \ - anaconda-webui \ libblockdev-btrfs \ libblockdev-lvm \ - libblockdev-dm + libblockdev-dm \ + "${ANACONDA[@]}" kernel=$(find /usr/lib/modules -maxdepth 1 -type d -printf '%P\n' | grep . | head -1) DRACUT_NO_XATTR=1 dracut -v --force --zstd --reproducible --no-hostonly \ diff --git a/iso_files/configure_iso_anaconda.sh b/iso_files/configure_iso_anaconda.sh index 5c0797a..afe0228 100755 --- a/iso_files/configure_iso_anaconda.sh +++ b/iso_files/configure_iso_anaconda.sh @@ -119,3 +119,8 @@ mokutil --timeout -1 || : echo -e "$ENROLLMENT_PASSWORD\n$ENROLLMENT_PASSWORD" | mokutil --import "$SECUREBOOT_KEY" || : %end EOF + +# debug +ksflatten -c /usr/share/anaconda/interactive-defaults.ks + +ksvalidator /usr/share/anaconda/interactive-defaults.ks