Merge "kickstart update for patched iso"

This commit is contained in:
Zuul 2022-11-02 18:06:26 +00:00 committed by Gerrit Code Review
commit 052e04bc5f

View File

@ -2937,6 +2937,14 @@ else
ostree --repo=/sysroot/ostree/repo remote add ${instname} ${insturl} ${feed_branch}
fi
# Verify Patched iso
if [ -d "/instboot/patches" ]; then
ilog "Prepatched iso"
ilog "Creating patching metadata directories"
mkdir -p ${IMAGE_ROOTFS}/var/rootdirs/opt/patching/metadata/{committed,available,applied}
cp -a /instboot/patches/* ${IMAGE_ROOTFS}/var/rootdirs/opt/patching/metadata/committed/
fi
# Save the install scripts and kickstart logs
mount /dev/mapper/cgts--vg-log--lv "${IMAGE_ROOTFS}/${LOG_DIR}"
if [ ${?} -ne 0 ] ; then