do not assume nfs for root=/dev/... but for /dev/nfs
authorHarald Hoyer <harald@redhat.com>
Wed, 1 Jul 2009 15:49:50 +0000 (17:49 +0200)
committerHarald Hoyer <harald@redhat.com>
Wed, 1 Jul 2009 17:28:31 +0000 (19:28 +0200)
modules.d/95nfs/parse-nfsroot.sh
test/TEST-20-NFS/test.sh

index f05fb2a..c1f404f 100755 (executable)
@@ -93,8 +93,10 @@ if [ -n "$nfsroot" ] ; then
     netroot=nfs:$nfsroot;
 fi
 
-# LEGACY convert root=<server-ip>:/<path
 case "$netroot" in
+    /dev/nfs) netroot=nfs;;
+    /dev/*) return;;
+# LEGACY: root=<server-ip>:/<path
     [0-9]*:/*|[0-9]*\.[0-9]*\.[0-9]*[!:]|/*)
        netroot=nfs:$netroot;;
 esac
index a161acb..d57e4f3 100755 (executable)
@@ -107,12 +107,11 @@ test_nfsv3() {
     client_test "NFSv3 Legacy root=/dev/nfs nfsroot=IP:path" 52:54:00:12:34:01 \
        "root=/dev/nfs nfsroot=192.168.50.1:/nfs/client" 192.168.50.1 -wsize=4096 || return 1
 
-# XXX Fix me
-#    client_test "NFSv3 Legacy root=/dev/nfs DHCP path only" 52:54:00:12:34:00 \
-#      "root=/dev/nfs" 192.168.50.1 -wsize=4096 || return 1
-#
-#    client_test "NFSv3 Legacy root=/dev/nfs DHCP IP:path" 52:54:00:12:34:01 \
-#      "root=/dev/nfs" 192.168.50.2 -wsize=4096 || return 1
+    client_test "NFSv3 Legacy root=/dev/nfs DHCP path only" 52:54:00:12:34:00 \
+       "root=/dev/nfs" 192.168.50.1 -wsize=4096 || return 1
+
+    client_test "NFSv3 Legacy root=/dev/nfs DHCP IP:path" 52:54:00:12:34:01 \
+       "root=/dev/nfs" 192.168.50.2 -wsize=4096 || return 1
 
     client_test "NFSv3 root=dhcp DHCP IP:path" 52:54:00:12:34:01 \
        "root=dhcp" 192.168.50.2 -wsize=4096 || return 1