generic-sbc-images/scripts/validate-kickstart.sh

12 lines
369 B
Bash
Raw Normal View History

2023-09-13 01:29:56 +00:00
#!/usr/bin/env bash
KICKSTART_FILE='../Rocky.ks'
2024-02-10 03:53:25 +00:00
KICKSTART_VERSION="RHEL$(source <(grep VERSION_ID /etc/os-release) && awk -F '.' '{print $1}' <<< $VERSION_ID)"
2023-09-13 01:29:56 +00:00
if ! command -v ksvalidator > /dev/null; then
>&2 echo "$0: error: unable to find command 'ksvalidator'"
exit 1
fi
ksvalidator --followincludes --version "${KICKSTART_VERSION}" "${KICKSTART_FILE}"