diff --git a/kickstart/files/kickstart.cfg b/kickstart/files/kickstart.cfg index f1bd4b50..6588f1d2 100644 --- a/kickstart/files/kickstart.cfg +++ b/kickstart/files/kickstart.cfg @@ -44,6 +44,7 @@ # Post - Kickstart Finalize Install UUID # Post - Log Filesystem Setup # Post Nochroot - Save Install scripts and Logs +# Post Nochroot - Set up /etc/fstab # ############################################################################ # @@ -1888,9 +1889,6 @@ INSTALL_UUID=`uuidgen` echo ${INSTALL_UUID} > /var/www/pages/feed/rel-xxxPLATFORM_RELEASExxx/install_uuid update_platform_conf "INSTALL_UUID=${INSTALL_UUID}" -# Create first_boot flag -touch /etc/platform/.first_boot - true %end @@ -2012,3 +2010,28 @@ fi true %end + +########################################################################## + +%post --interpreter=/bin/bash --nochroot +HOOK_LABEL="post_nochroot" +. /tmp/lat/ks_functions.sh + +# This needs to update all available ostree based rootfs + +ilog "****************************************************" +ilog "*** Post Nochroot - Set up /etc/fstab ***" +ilog "****************************************************" + +mkdir -p ${IMAGE_ROOTFS}/var/rootdirs/opt/platform-backup +mkdir -p ${IMAGE_ROOTFS}/var/rootdirs/scratch +mkdir -p ${IMAGE_ROOTFS}/var/log +echo -e "LABEL=platform_backup\t/var/rootdirs/opt/platform-backup\text4\tdefaults\t1 2" >> ${IMAGE_ROOTFS}/etc/fstab +echo -e "/dev/mapper/cgts--vg-scratch--lv\t/var/rootdirs/scratch\text4\tdefaults\t1 2" >> ${IMAGE_ROOTFS}/etc/fstab +echo -e "/dev/mapper/cgts--vg-log--lv\t/var/log\text4\tdefaults\t1 2" >> ${IMAGE_ROOTFS}/etc/fstab + +# Create first_boot flag +touch ${IMAGE_ROOTFS}/etc/platform/.first_boot + +true +%end