]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
95nfs/nfs-lib.sh: add server-ip to nfs server search
authorHarald Hoyer <harald@redhat.com>
Wed, 4 Apr 2012 11:25:38 +0000 (13:25 +0200)
committerHarald Hoyer <harald@redhat.com>
Thu, 5 Apr 2012 11:25:41 +0000 (13:25 +0200)
modules.d/95nfs/nfs-lib.sh

index 1ccb416e587c5aa3104ba78f6aa8022fd53e3390..628996ca4a913264a0d9f8c2f4ac644177a68c78 100755 (executable)
@@ -95,6 +95,7 @@ nfsroot_from_dhcp() {
     done
     [ -n "$new_root_path" ] && nfsroot_to_var "$nfs:$new_root_path"
     [ -z "$path" ] && [ "$(getarg root=)" == "/dev/nfs" ] && path=/tftpboot/%s
+    [ -z "$server" ] && server=$srv
     [ -z "$server" ] && server=$new_dhcp_server_identifier
     [ -z "$server" ] && server=$new_dhcp_next_server
     [ -z "$server" ] && server=${new_root_path%%:*}