]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
NFS empty path becomes "/tftpboot/%s" only if root=/dev/nfs legacy mode
authorWarren Togami <wtogami@redhat.com>
Tue, 30 Jun 2009 22:03:16 +0000 (18:03 -0400)
committerWarren Togami <wtogami@redhat.com>
Tue, 30 Jun 2009 22:03:16 +0000 (18:03 -0400)
modules.d/95nfs/nfsroot

index a12c2fb782331efd41235e908678b1c71f1af719..0da8ee322cb7f1fabf56726c6b715b6c4eb410e5 100755 (executable)
@@ -79,9 +79,8 @@ root_to_var $root
 #already takes care of nfs:... formatted root-path
 [ -z "$path" ] && root_to_var $nfs:$new_root_path
 
-#Empty path defaults to "/tftpboot/%s"
-# FIXME: This should happen only in nfsroot.txt legacy mode
-[ -z "$path" ] && path="/tftpboot/%s"
+#Empty path defaults to "/tftpboot/%s" only in nfsroot.txt legacy mode
+[ -z "$path" ] && [ "$(getarg root=)" = "/dev/nfs" ] && path="/tftpboot/%s"
 
 if [ -z "$server" ] ; then
     # XXX new_dhcp_next_server is unconfirmed this is an assumption