26.05: systemd-tmpfiles-clean: Protocol driver not attached

Hey,

I updated 3 machines from 25.11 to 26.05 and on all of them systemd-tmpfiles-clean.service fails now with a long list of messages looking like this:

systemd-tmpfiles[660087]: statx(/nix/var/nix/builds) failed: Protocol driver not attached
systemd-tmpfiles[660087]: statx(/var/lib/systemd/coredump) failed: Protocol driver not attached
[…]
systemd-tmpfiles[660087]: statx(/tmp) failed: Protocol driver not attached
systemd-tmpfiles[660087]: statx(/var/tmp) failed: Protocol driver not attached

As i can’t find any hints online right now: Has anyone else experienced this?

Thanks!

Caused by noatime on your root file system. The fix is already in staging-26.05 and will land in nixos-26.05 in roughly two weeks.

3 Likes

If you want a solution in the meantime, you can do something like this:

systemd.package = lib.throwIfNot (pkgs.systemd.version == "260.1") "systemd version override outdated!" (
  pkgs.systemd.overrideAttrs (prevAttrs: {
    version = "260.2";
    src = prevAttrs.src.override {
      hash = "sha256-NXmmSV7/9WIW6C8wjdOwaerCy4v7Zcrd8+XDzcS8rEk=";
    };
  })
);