mirror of
https://github.com/get-aurora-dev/iso.git
synced 2026-11-03 21:49:46 -09:00
feat: verify kickstart file syntax (#102)
This commit is contained in:
parent
5529801982
commit
65c29ff34b
2 changed files with 14 additions and 4 deletions
|
|
@ -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 \
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue