Summary
When rechunk runs on a bootc image that doesn't ship grub2 boot assets (no /usr/lib/ostree-boot/efi/EFI/, no /usr/lib/ostree-boot/grub2/fonts/, etc.), the action prints these on stderr but proceeds OK:
chgrp: cannot access '998': No such file or directory
chmod: cannot access './usr/lib/ostree-boot/efi/EFI/BOOT': No such file or directory
chmod: cannot access './usr/lib/ostree-boot/efi/EFI/fedora': No such file or directory
chmod: cannot access './usr/lib/ostree-boot/efi/EFI': No such file or directory
chmod: cannot access './usr/lib/ostree-boot/grub2/fonts': No such file or directory
chmod: cannot access './usr/lib/ostree-boot/grub2': No such file or directory
The action exits successfully and the published image is correct (verified on ghcr.io/daniel-g-carrasco/margine:stable), so this is log noise, not a functional bug. But it confuses build-log triage — every audit treats those lines as red until confirming.
Suggested fix
Two non-invasive options:
- Pre-check with
[ -e <path> ] before each chgrp/chmod call, skip silently if missing.
- Pass
-f (force, don't print errors) to chgrp/chmod. Less surgical but one-line.
Either way, downstream rechunk consumers don't have to special-case "is this a grub2-bearing image".
Reference
Happy to send a PR if a fix direction is confirmed.
Summary
When
rechunkruns on a bootc image that doesn't ship grub2 boot assets (no/usr/lib/ostree-boot/efi/EFI/, no/usr/lib/ostree-boot/grub2/fonts/, etc.), the action prints these on stderr but proceeds OK:The action exits successfully and the published image is correct (verified on
ghcr.io/daniel-g-carrasco/margine:stable), so this is log noise, not a functional bug. But it confuses build-log triage — every audit treats those lines as red until confirming.Suggested fix
Two non-invasive options:
[ -e <path> ]before eachchgrp/chmodcall, skip silently if missing.-f(force, don't print errors) tochgrp/chmod. Less surgical but one-line.Either way, downstream rechunk consumers don't have to special-case "is this a grub2-bearing image".
Reference
Happy to send a PR if a fix direction is confirmed.