* Put e2fsprogs etc. in mountall's $PATH so that fsck works.
svn path=/nixos/branches/boot-order/; revision=22151
This commit is contained in:
parent
dbadf6e9c2
commit
5702557a65
@ -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
|
||||
|
@ -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
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user