From 7a6d5d60aae321cbfe19e4eb85766dcb2036566a Mon Sep 17 00:00:00 2001 From: Lindley Vieira Date: Mon, 7 Oct 2024 10:21:28 -0300 Subject: [PATCH] Fix change feed ostree config Sometimes ostree complains about the remaining space on feed directory while committing, but it has enough space to commit. This happens because the ostree config to leave some free space is active and set to a 3% value. This commit set the min-free-space-percent config to 0, because it is miscalculating the remaining space and raising an error even with plenty of free space to commit. The last commit fixed just part of it: I149b0c16548369740f5712859725d37ade8ed57a Test-plan: PASS: Install a DX system from zero and see if the config was set PASS: Apply multiple patches and see no error regarding free memory Story: 2010676 Task: 51128 Change-Id: I68197eed84b1a3cfc034123b897934d40d054613 Signed-off-by: Lindley Vieira --- kickstart/files/kickstart.cfg | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kickstart/files/kickstart.cfg b/kickstart/files/kickstart.cfg index 5c188f4f..cad5cd23 100644 --- a/kickstart/files/kickstart.cfg +++ b/kickstart/files/kickstart.cfg @@ -2061,6 +2061,7 @@ else mount -o rw,noatime "${OSTREE_ROOT_DEVICE}" "${PHYS_SYSROOT}" || elog "Error mounting ${OSTREE_ROOT_DEVICE}" repo="${PHYS_SYSROOT}/var/www/pages/feed/rel-xxxPLATFORM_RELEASExxx/ostree_repo" + config_file="${repo}/config" mkdir -p "${repo}" # Tell LAT to install from this local stage @@ -2069,6 +2070,7 @@ else export INSTL=${instl} ostree --repo=${repo} init --mode=archive + echo "min-free-space-percent=0" >> "${config_file}" if [ "${insturl}" = "file://NOT_SET" ] ; then ilog "ostree_repo archive pull from file:///instboot/ostree_repo ${gpg_option}" ostree --repo=${repo} remote add ${gpg_option} ${instbr} file:///instboot/ostree_repo