I’m trying to embed incus into a custom Silverblue build. The RPM in the Fedora repositories has a tmpfiles.d entry but bootc container lint still complains about a few directories. I’m trying to figure out which ones/all I can safely remove and which ones I’d need to add into an extra tmpfiles.d entry.
Partially truncated output from minimal install commands extracted from the build steps. The /run directory I will just rm the created files from, but I’m trying to find which directories incus will need created in the installed system, if I need to create systemd oneshots to write files to specific paths etc.
$ podman run --rm -it quay.io/fedora/fedora-silverblue:44
bash-5.3# dnf install -y incus incus-tools
[TRUNCATED]
bash-5.3# dnf clean all
Removed 21 files, 14 directories (total of 112 MiB). 0 errors occurred.
bash-5.3# rm -rf /run/dnf
bash-5.3# rm -rf /var/lib/dnf
bash-5.3# bootc container lint --no-truncate
Lint warning: nonempty-run-tmp: Found content in runtime-only directories (/run, /tmp):
/run/console
[TRUNCATED]
/run/vpnc
Lint warning: var-log: Found non-empty logfiles:
/var/log/dnf5.log
Lint warning: var-tmpfiles: Found content in /var missing systemd tmpfiles.d entries:
d /var/cache/libdnf5 0755 root root - -
d /var/cache/lxc 0755 root root - -
d /var/lib/containers 0755 root root - -
d /var/lib/lxc 0755 root root - -
d /var/lib/lxcfs 0755 root root - -
d /var/lib/tpm2-tss 0755 root root - -
d /var/lib/tpm2-tss/system 0755 root root - -
d /var/usrlocal/bin 0755 root root - -
d /var/usrlocal/etc 0755 root root - -
d /var/usrlocal/games 0755 root root - -
d /var/usrlocal/include 0755 root root - -
d /var/usrlocal/lib 0755 root root - -
d /var/usrlocal/sbin 0755 root root - -
d /var/usrlocal/share 0755 root root - -
d /var/usrlocal/src 0755 root root - -
Found non-directory/non-symlink files in /var:
var/log/dnf5.log
var/cache/ldconfig/aux-cache
Checks passed: 10
Checks skipped: 1
Warnings: 3