systemd-tmpfiles fails: Directories already exist #98

Open
opened 2026-01-04 21:24:48 +00:00 by genodeftest · 9 comments
genodeftest commented 2026-01-04 21:24:48 +00:00 (Migrated from gitlab.com)

Every boot, I'm getting the following errors from systemd-tmpfiles:

Jan 04 16:46:52 fedora systemd[1]: Starting systemd-tmpfiles-setup.service - Create System Files and Directories...
Jan 04 16:46:53 fedora systemd-tmpfiles[901]: /usr/lib/tmpfiles.d/var.conf:21: Duplicate line for path "/var/lib", ignoring.
Jan 04 16:46:53 fedora systemd-tmpfiles[901]: "/home" already exists and is not a directory.
Jan 04 16:46:53 fedora systemd-tmpfiles[901]: "/srv" already exists and is not a directory.
Jan 04 16:46:53 fedora systemd-tmpfiles[901]: "/root" already exists and is not a directory.
Jan 04 16:46:53 fedora systemd[1]: Finished systemd-tmpfiles-setup.service - Create System Files and Directories.

Running with the latest 43.20260104 image, though this issue has been present for at least a month (43.20251203 image)

It seems like nothing is breaking from this issue, but I'm not 100% sure.

On a non-atomic Fedora 43, this issue is not present.

Every boot, I'm getting the following errors from `systemd-tmpfiles`: ``` Jan 04 16:46:52 fedora systemd[1]: Starting systemd-tmpfiles-setup.service - Create System Files and Directories... Jan 04 16:46:53 fedora systemd-tmpfiles[901]: /usr/lib/tmpfiles.d/var.conf:21: Duplicate line for path "/var/lib", ignoring. Jan 04 16:46:53 fedora systemd-tmpfiles[901]: "/home" already exists and is not a directory. Jan 04 16:46:53 fedora systemd-tmpfiles[901]: "/srv" already exists and is not a directory. Jan 04 16:46:53 fedora systemd-tmpfiles[901]: "/root" already exists and is not a directory. Jan 04 16:46:53 fedora systemd[1]: Finished systemd-tmpfiles-setup.service - Create System Files and Directories. ``` Running with the latest 43.20260104 image, though this issue has been present for at least a month (43.20251203 image) It seems like nothing is breaking from this issue, but I'm not 100% sure. On a non-atomic Fedora 43, this issue is not present.
genodeftest commented 2026-01-04 21:24:48 +00:00 (Migrated from gitlab.com)

set status to To do

set status to **To do**
genodeftest commented 2026-01-04 21:29:15 +00:00 (Migrated from gitlab.com)

changed the description

changed the description
Siosm commented 2026-01-07 17:06:44 +00:00 (Migrated from gitlab.com)

Those messages can safely be ignored.

The "already exists and is not a directory" ones come from the fact that on rpm-ostree/ostree/bootc systems those are symlinks. The config entries come from systemd but I'm not sure if it's worth stripping them.

I did not find where the duplicate "/var/lib" entry comes from.

Those messages can safely be ignored. The "already exists and is not a directory" ones come from the fact that on rpm-ostree/ostree/bootc systems those are symlinks. The config entries come from systemd but I'm not sure if it's worth stripping them. I did not find where the duplicate "/var/lib" entry comes from.
Siosm commented 2026-01-07 17:08:51 +00:00 (Migrated from gitlab.com)

As this is likely common to all bootc images, this should probably be fixed there first.

As this is likely common to all bootc images, this should probably be fixed there first.
Siosm commented 2026-01-07 17:10:10 +00:00 (Migrated from gitlab.com)

As this is not strictly speaking a bug, I'll close it but feel free to open PRs if you want to work on it.

As this is not strictly speaking a bug, I'll close it but feel free to open PRs if you want to work on it.
Siosm commented 2026-01-07 17:10:13 +00:00 (Migrated from gitlab.com)

set status to Done

set status to **Done**
Siosm (Migrated from gitlab.com) closed this issue 2026-01-07 17:10:13 +00:00
Siosm commented 2026-01-14 16:32:35 +00:00 (Migrated from gitlab.com)

set status to To do

set status to **To do**
Siosm (Migrated from gitlab.com) reopened this issue 2026-01-14 16:32:35 +00:00
Siosm commented 2026-01-14 16:32:36 +00:00 (Migrated from gitlab.com)

This is https://issues.redhat.com/browse/RHEL-106203. This will be fixed once we move to the bootc base images as base (https://gitlab.com/fedora/ostree/sig/-/issues/88).

In the meantime we can copy the workaround: https://gitlab.com/fedora/bootc/base-images/-/merge_requests/331

This is https://issues.redhat.com/browse/RHEL-106203. This will be fixed once we move to the bootc base images as base (https://gitlab.com/fedora/ostree/sig/-/issues/88). In the meantime we can copy the workaround: https://gitlab.com/fedora/bootc/base-images/-/merge_requests/331
Siosm commented 2026-01-14 16:36:32 +00:00 (Migrated from gitlab.com)
OK Dusty suggested https://gitlab.com/fedora/bootc/base-images/-/merge_requests/334 as well.
Sign in to join this conversation.
No description provided.