Blame SOURCES/0120-nfs-nfsroot-symlink-dev-null-to-dev-nfs-as-a-marker-.patch

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