diff --git a/modules/config/system-path.nix b/modules/config/system-path.nix index d90747324189..7e04af21997e 100644 --- a/modules/config/system-path.nix +++ b/modules/config/system-path.nix @@ -22,7 +22,6 @@ let pkgs.cpio pkgs.curl pkgs.diffutils - pkgs.e2fsprogs pkgs.eject # HAL depends on it anyway pkgs.findutils pkgs.gawk @@ -44,7 +43,6 @@ let pkgs.pciutils pkgs.perl pkgs.procps - pkgs.reiserfsprogs pkgs.rsync pkgs.seccure pkgs.strace diff --git a/modules/tasks/filesystems.nix b/modules/tasks/filesystems.nix index 791ecccf4c88..387a093ee696 100644 --- a/modules/tasks/filesystems.nix +++ b/modules/tasks/filesystems.nix @@ -2,6 +2,13 @@ with pkgs.lib; +let + + # Packages that provide fsck backends. + fsPackages = [ pkgs.e2fsprogs pkgs.reiserfsprogs ]; + +in + { ###### interface @@ -119,7 +126,9 @@ with pkgs.lib; config = { # Add the mount helpers to the system path so that `mount' can find them. - environment.systemPackages = [ pkgs.ntfs3g pkgs.cifs_utils pkgs.nfsUtils pkgs.mountall ]; + environment.systemPackages = + [ pkgs.ntfs3g pkgs.cifs_utils pkgs.nfsUtils pkgs.mountall ] + ++ fsPackages; environment.etc = singleton { source = pkgs.writeText "fstab" @@ -151,7 +160,7 @@ with pkgs.lib; script = '' exec > /dev/console 2>&1 - export PATH=${config.system.sbin.mount}/bin:${pkgs.utillinux}/sbin:$PATH + export PATH=${config.system.sbin.mount}/bin:${makeSearchPath "sbin" ([pkgs.utillinux] ++ fsPackages)}:$PATH ${pkgs.mountall}/sbin/mountall --verbose --debug echo DONE '';