1bf31c
From b14ba27a3cdc7a71ded3c4b424129ffd61d7be85 Mon Sep 17 00:00:00 2001
1bf31c
From: Denis Volkov <denis@simpletexting.net>
1bf31c
Date: Tue, 4 Aug 2020 19:51:27 +0500
1bf31c
Subject: [PATCH] Change the order of NFS servers during the boot NFS server
1bf31c
 provided by DHCP in next-server option has higher priority than DHCP-server
1bf31c
 itself
1bf31c
1bf31c
(cherry picked from commit 09a691af3b63543fe58faa02661f785b907a78a6)
1bf31c
1bf31c
Resolves: #1859513
1bf31c
---
1bf31c
 modules.d/95nfs/nfs-lib.sh | 2 +-
1bf31c
 1 file changed, 1 insertion(+), 1 deletion(-)
1bf31c
1bf31c
diff --git a/modules.d/95nfs/nfs-lib.sh b/modules.d/95nfs/nfs-lib.sh
1bf31c
index 1ba4f5ff..95844f58 100755
1bf31c
--- a/modules.d/95nfs/nfs-lib.sh
1bf31c
+++ b/modules.d/95nfs/nfs-lib.sh
1bf31c
@@ -112,8 +112,8 @@ nfsroot_from_dhcp() {
1bf31c
     [ -n "$new_root_path" ] && nfsroot_to_var "$nfs:$new_root_path"
1bf31c
     [ -z "$path" ] && [ "$(getarg root=)" = "/dev/nfs" ] && path=/tftpboot/%s
1bf31c
     [ -z "$server" ] && server=$srv
1bf31c
-    [ -z "$server" ] && server=$new_dhcp_server_identifier
1bf31c
     [ -z "$server" ] && server=$new_next_server
1bf31c
+    [ -z "$server" ] && server=$new_dhcp_server_identifier
1bf31c
     [ -z "$server" ] && server=${new_root_path%%:*}
1bf31c
 }
1bf31c
 
1bf31c