]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
nfs/nfsroot: symlink /dev/null to /dev/nfs, as a marker for root=/dev/nfs
authorHarald Hoyer <harald@redhat.com>
Wed, 5 Feb 2014 12:06:29 +0000 (13:06 +0100)
committerHarald Hoyer <harald@redhat.com>
Wed, 5 Feb 2014 12:06:29 +0000 (13:06 +0100)
modules.d/95nfs/nfsroot.sh

index f04159e3434b18fd4bb0e0535bcce796447b4d82..d0719efe1e6df7588ffbbd101d3c5dd4da877fb7 100755 (executable)
@@ -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