| Summary: | poky/scripts/lib/wic/partition.py: add du --apparent-size to solve build error on compressed ZFS dataset | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Yocto Project Subprojects] Wic | Reporter: | Wojciech Niziński <niziak-yoctobug> | ||||
| Component: | wic | Assignee: | Trevor Woerner <twoerner> | ||||
| Status: | ACCEPTED --- | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | Medium | CC: | randy.macleod, ross.burton, victor.hansen | ||||
| Version: | v0.3.0 | ||||||
| Target Milestone: | v0.4.0 | ||||||
| Hardware: | x86 | ||||||
| OS: | Multiple | ||||||
| Whiteboard: | |||||||
| OS type for building Yocto: | --- | Type of Regression: | --- | ||||
| Verified: | Documentation change: | No (bug/feature does not impact docs) | |||||
| Attachments: |
|
||||||
|
Description
Wojciech Niziński
2025-08-13 05:47:57 UTC
Ross will want to look at this when he's back. The code involved may need a re-write. (In reply to Randy MacLeod from comment #1) > Ross will want to look at this when he's back. > The code involved may need a re-write. This patch also resolves spurious 'ERROR: Actual rootfs size (y kB) is larger than allowed size x kB' failures when building wic images on ZFS hosts. The root cause: du -ks reports disk usage based on allocated blocks, which on ZFS varies depending on pool fragmentation and fill level. This means identical builds can report different sizes across builders: builder 1 - du -ks: 281870 kB builder 2 - du -ks: 281534 kB The ERROR becomes more prevalent when your target rootfs reaches capacity, i.e. less "wiggle room". Would it be possible to backport this fix to scarthgap? As this is a wic issue I'm going to throw it to Trevor :) Trevor, Does this patch work for you ? |