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 <lindley.vieira@windriver.com>
This commit is contained in:
parent
9b5b6b2392
commit
7a6d5d60aa
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user