feat: verify kickstart file syntax (#102)

This commit is contained in:
renner 2026-10-04 15:36:27 +00:00 committed by GitHub
parent 5529801982
commit 65c29ff34b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 14 additions and 4 deletions

View file

@ -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 \

View file

@ -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