From 2cdf6403576a1722e989be36600c1d115a670e5d Mon Sep 17 00:00:00 2001 From: Bryan Zuelly Date: Thu, 12 Dec 2024 23:09:09 -0500 Subject: [PATCH] added appliance-creator script, createimage.sh --- README.md | 6 +++++- createimage.sh | 21 +++++++++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 createimage.sh diff --git a/README.md b/README.md index bd5eacb..b827daa 100644 --- a/README.md +++ b/README.md @@ -1 +1,5 @@ -### Riscv kickstarts can be found in subsequent branches. +### Kickstarts + +Kickstart repo based on https://git.resf.org/sig_altarch/rockygenericaarch64 + + diff --git a/createimage.sh b/createimage.sh new file mode 100644 index 0000000..4902539 --- /dev/null +++ b/createimage.sh @@ -0,0 +1,21 @@ +#!/bin/bash +KSFILE=$1 +KSNAME=${KSFILE%.ks} + +if [ ! -f "${KSFILE}" ]; then + echo + echo "SYNOPSIS" + echo " $0 " + echo + echo "EXAMPLE" + echo " $0 Rocky-Userland-9-aarch64-Generic-Minimal-4.ks" + 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 +