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

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