You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 13, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Oct 13, 2026. It is now read-only.
Spurious chgrp/chmod 'cannot access' warnings for non-existent /usr/lib/ostree-boot paths #21
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".
Activity
antheas commentedon Jun 6, 2026
Make the failures silent. It's ok to send a PR