Use busybox mount instead of klibc nfsmount for nfs mounts in initrd.

This commit is contained in:
Rickard Nilsson 2012-08-06 20:05:35 +02:00 committed by Eelco Dolstra
parent d13a3c741a
commit e33dfa936f
2 changed files with 1 additions and 11 deletions

View file

@ -266,11 +266,7 @@ mountFS() {
# For CIFS mounts, retry a few times before giving up.
local n=0
while true; do
if [ "$fsType" = "nfs" ]; then
nfsmount "$device" "/mnt-root$mountPoint" && break
else
mount "/mnt-root$mountPoint" && break
fi
mount "/mnt-root$mountPoint" && break
if [ "$fsType" != cifs -o "$n" -ge 10 ]; then fail; break; fi
echo "retrying..."
n=$((n + 1))

View file

@ -40,12 +40,6 @@ in
boot.initrd.kernelModules = mkIf inInitrd [ "nfs" ];
boot.initrd.extraUtilsCommands = mkIf inInitrd
''
# !!! Uh, why don't we just install mount.nfs?
cp -v ${pkgs.klibc}/lib/klibc/bin.static/nfsmount $out/bin
'';
# Ensure that statd and idmapd are started before mountall.
jobs.mountall.preStart =
''