Skip to content

tmpfiles.d entries aren't created for some directories in /var #5517

@onesaladleaf

Description

@onesaladleaf

Describe the bug

It looks like rpm-ostree creates tmpfiles.d entries for directories in /var, however entries for some directories aren't created, leading to related systemd services breaking after we run a rechunker on our images (because hhd-rechunk removes /var contents)

The directories that aren't being added to tmpfiles are /var/spool/at (and its subdirectory /var/spool/at/spool), /var/lib/plocate and /var/account

The images are based on fedora-bootc

Reproduction steps

  1. build a fedora-bootc based bootc container with the at package installed
  2. run the container through hhd-rechunk (which will remove /var/spool/at)
  3. enter the container
  4. run cat /usr/lib/tmpfiles.d/rpm-ostree-autovar.conf | grep /var/spool/at
  5. /var/spool/at is not present in rpm-ostree-autovar.conf

Expected behavior

Directories are added to rpm-ostree-autovar.conf

Actual behavior

Directories are not added to rpm-ostree-autovar.conf

System details

$ rpm-ostree --version
rpm-ostree:
 Version: '2025.11'
 Git: e2e8bdcb015de0991f468d7682621e6359d10138
 Features:
  - rust
  - compose
  - container
  - fedora-integration

$ rpm-ostree status -b
State: idle
BootedDeployment:
● ostree-unverified-registry:quay.io/pocketblue/oneplus-sdm845-gnome-mobile:42-usrlocal-opt-symlinks
                   Digest: sha256:1c4bc1dec0702171c61dc2e0a964051269a7af14b3e7fb97a2cf915de94029de
                  Version: 42.20251023 (2025-10-23T19:26:44Z)

Additional information

/]# rpm -q --whatprovides /var/spool/at/spool
at-3.2.5-16.fc42.aarch64

/]# ls -la /var/spool/at/spool
total 0
drwx------. 1 root root  0 Jun 25 00:00 .
drwx------. 1 root root 18 Oct 24 15:52 ..

/]# ls /var/lib/plocate
CACHEDIR.TAG

/]# ls /var/account
pacct

/]# file /var/account/pacct
/var/account/pacct: empty

/]# rpm -q --whatprovides /var/account/pacct
psacct-6.6.4-24.fc42.aarch64

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions