From 9175fd58469282c1ca87674cec43bec33f6164e6 Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Wed, 5 Feb 2014 13:06:29 +0100 Subject: [PATCH] nfs/nfsroot: symlink /dev/null to /dev/nfs, as a marker for root=/dev/nfs --- modules.d/95nfs/nfsroot.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules.d/95nfs/nfsroot.sh b/modules.d/95nfs/nfsroot.sh index f04159e..d0719ef 100755 --- a/modules.d/95nfs/nfsroot.sh +++ b/modules.d/95nfs/nfsroot.sh @@ -16,7 +16,7 @@ NEWROOT="$3" nfs_to_var $root $netif [ -z "$server" ] && die "Required parameter 'server' is missing" -mount_nfs $root $NEWROOT $netif && { [ -e /dev/root ] || ln -s null /dev/root ; } +mount_nfs $root $NEWROOT $netif && { [ -e /dev/root ] || ln -s null /dev/root ; [ -e /dev/nfs ] || ln -s null /dev/nfs; } [ -f $NEWROOT/etc/fstab ] && cat $NEWROOT/etc/fstab > /dev/null