lib/deploy: Add safety margin in early prune space check
authorJonathan Lebon <jonathan@jlebon.com>
Thu, 4 Jan 2024 16:14:40 +0000 (11:14 -0500)
committerJonathan Lebon <jonathan@jlebon.com>
Thu, 4 Jan 2024 18:07:08 +0000 (13:07 -0500)
commitcc5747a60561db0b6c8a534d1556605599192a03
tree547b37305846c4187b0125dfe3686feb7f460ea0
parent4982306e67f79260b1319f4acde03d1eb11d5060
lib/deploy: Add safety margin in early prune space check

There are a few things the estimator doesn't account for, e.g. writing
the new BLS entries. Rather than trying to perfect it (since I think we
should change approach entirely -- see previous commit message), just
add a 1M margin to the space check.
src/libostree/ostree-sysroot-deploy.c