From 36556227aafdc1504e3f926bcb9ee1be755831f7 Mon Sep 17 00:00:00 2001 From: Pratham Patel Date: Tue, 1 Aug 2023 22:25:35 +0530 Subject: [PATCH] add script to test the kickstart file(s) --- test-kickstart-file.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 test-kickstart-file.sh diff --git a/test-kickstart-file.sh b/test-kickstart-file.sh new file mode 100755 index 0000000..7e965a6 --- /dev/null +++ b/test-kickstart-file.sh @@ -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}"