ostree/src
Jonathan Lebon 4982306e67 lib/deploy: Round to block size in early prune space check
When we estimate how much space a new bootcsum dir will use, we
weren't accounting for the space overhead from files not using the
last filesystem block completely. This doesn't matter much if counting
a few files, but e.g. on FCOS aarch64, we include lots of small
devicetree blobs in the bootfs. That loss can add up to enough for the
`fallocate()` check to pass but copying still hitting `ENOSPC` later on.

I think a better fix here is to change approach entirely and instead
refactor `install_deployment_kernel()` so that we can call just the
copying bits of it as part of the early prune logic. We'll get a more
accurate assessment and it's not lost work since we won't need to
recopy later on. Also this would not require having to keep in sync the
estimator and the install bits.

That said, this is blocking FCOS releases, so I went with a more tactical
fix for now.

Fixes: https://github.com/coreos/fedora-coreos-tracker/issues/1637
2024-01-04 12:57:43 -05:00
..
boot tmpfiles: Copy /usr/share/factory/var to /var 2023-11-30 18:11:33 -05:00
libostree lib/deploy: Round to block size in early prune space check 2024-01-04 12:57:43 -05:00
libotcore prepare-root: Add support for root.transient 2023-12-07 13:31:42 -05:00
libotutil lib/deploy: Round to block size in early prune space check 2024-01-04 12:57:43 -05:00
ostree main: Drop some redundant includes of ot-main.h 2023-11-27 20:11:34 -05:00
rofiles-fuse tree-wide: Run clang-format 2023-05-02 08:42:19 -04:00
switchroot switchroot: Be explicit about what could cause /sysroot to be ro 2023-12-21 17:28:23 +00:00