Blame 0011-nfs-nfsroot-symlink-dev-null-to-dev-nfs-as-a-marker-.patch

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