Unverified Commit d9b1bde3 authored by aszlig's avatar aszlig
Browse files

nixos: Fix fsck with systemd 251.6 and later

Version 251.6 of systemd introduced a small change[1] that now checks
whether the fsck command is available in *addition* to the filesystem
specific fsck.$fsname executable.

When bumping systemd to version 251.7 on our side[2], we introduced that
change. This subsequently caused our "fsck" test to fail and it looks
like this was an oversight during the pull request[3] introducing the
bump.

Since the fsck wrapper binary is in util-linux, I decided to address
this by adding util-linux to fsPackages because util-linux is already
part of the closure of any NixOS system so the impact should be pretty
low.

[1]: https://github.com/systemd/systemd-stable/commit/73db7d99323c236625656f906eb4e429613d324b
[2]: https://github.com/NixOS/nixpkgs/commit/844a08cc06b5c0703ba37f2318ef5b7d90665d04
[3]: https://github.com/NixOS/nixpkgs/pull/199618



Signed-off-by: default avataraszlig <aszlig@nix.build>
parent 84ead61b
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -300,7 +300,11 @@ in
    boot.supportedFilesystems = map (fs: fs.fsType) fileSystems;

    # Add the mount helpers to the system path so that `mount' can find them.
    system.fsPackages = [ pkgs.dosfstools ];
    system.fsPackages = [
      pkgs.dosfstools
      # This is needed for the main fsck utility wrapping the fs-specific ones.
      pkgs.util-linux
    ];

    environment.systemPackages = with pkgs; [ fuse3 fuse ] ++ config.system.fsPackages;