2024-12-13 04:09:09 +00:00
|
|
|
#!/bin/bash
|
|
|
|
KSFILE=$1
|
|
|
|
KSNAME=${KSFILE%.ks}
|
|
|
|
|
|
|
|
if [ ! -f "${KSFILE}" ]; then
|
|
|
|
echo
|
|
|
|
echo "SYNOPSIS"
|
|
|
|
echo " $0 <KICKSTARTFILE>"
|
|
|
|
echo
|
|
|
|
echo "EXAMPLE"
|
2024-12-13 04:12:47 +00:00
|
|
|
echo " $0 Rocky-9-aarch64-Generic-Minimal-4.ks"
|
2024-12-13 04:09:09 +00:00
|
|
|
echo
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
set -x
|
|
|
|
appliance-creator -c ${KSFILE} \
|
|
|
|
-d -v --logfile /var/tmp/${KSNAME}.log \
|
|
|
|
--cache /root/cache --no-compress \
|
|
|
|
-o /var/tmp/appoutput --format raw --name ${KSNAME} | tee /var/tmp/${KSNAME}.log.2
|
|
|
|
|