diff --git a/kickstart/files/kickstart.cfg b/kickstart/files/kickstart.cfg index 6588f1d2..c6d4c8cc 100644 --- a/kickstart/files/kickstart.cfg +++ b/kickstart/files/kickstart.cfg @@ -1881,9 +1881,17 @@ ilog "*** Post - Kickstart Finalize Install UUID ***" ilog "****************************************************" # Create a uuid specific to this installation +# install_uuid under /var needs to match what is written to /etc/platform/platform.conf +# When instflux=0 (/var not on a dedicated fluxdata partition) +# When instflux=1 (/var is part of the two different sysroot deployments). +# Therefore check if the file has been written and use that, otherwise generate it ilog "Add install uuid to feed and platform.conf" - -INSTALL_UUID=`uuidgen` +if [ -e "${LAT_DIR}/INSTALL_UUID" ]; then + INSTALL_UUID=$(< "${LAT_DIR}/INSTALL_UUID") +else + INSTALL_UUID=`uuidgen` + echo "${INSTALL_UUID}" > ${LAT_DIR}/INSTALL_UUID +fi [ ! -d "/var/www/pages/feed/rel-xxxPLATFORM_RELEASExxx" ] && mkdir -p -m 0755 /var/www/pages/feed/rel-xxxPLATFORM_RELEASExxx echo ${INSTALL_UUID} > /var/www/pages/feed/rel-xxxPLATFORM_RELEASExxx/install_uuid