add script to test the kickstart file(s)

This commit is contained in:
Pratham Patel 2023-08-01 22:25:35 +05:30
parent 8dedc08416
commit 36556227aa
No known key found for this signature in database

11
test-kickstart-file.sh Executable file
View File

@ -0,0 +1,11 @@
#!/usr/bin/env bash
KICKSTART_FILE=Rocky-9-aarch64-minimal.ks
VERSION=RHEL9
if ! command -v ksvalidator > /dev/null; then
>&2 echo "$0: error: unable to find command 'ksvalidator'"
exit 1
fi
ksvalidator --followincludes --version "${VERSION}" "${KICKSTART_FILE}"