Apptainer: transaction failed error with filesystem-3.16-5.el9

Hi

when I try to create a simple apptainer containing following

BootStrap: docker
From: rockylinux:9

%post
    dnf update -y

I get an ‘transaction failed’ error with the filesystem-3.16-5.el9 package similar to Filesystem-3.16-5 package broken?

I modified the apptainer and installed filesystem package with rpm -Uvh to see the errors:

[...]
+ rpm -Uvh --force filesystem-3.16-5.el9.x86_64.rpm
Verifying...                          ################################# [100%]
Preparing...                          ################################# [100%]
Updating / installing...
   1:filesystem-3.16-5.el9            ################################# [ 50%]
error: unpacking of archive failed on file /dev: cpio: chown failed - No such file or directory
error: filesystem-3.16-5.el9.x86_64: install failed
error: filesystem-3.16-2.el9.x86_64: erase skipped

it seems filesystem-3.16-5.el9 checks the ownership of /dev and fails if it cannot fix it. Does anyone has an idea how to get around this problem? Should I rather post it on the apptainer forums ?

I recommend submitting this to the Apptainer GitHub at Sign in to GitHub · GitHub.

Either that or asking about it in their Slack.

Thanks. See: rocky9: transaction failed error with filesystem-3.16-5.el9 · Issue #2779 · apptainer/apptainer · GitHub