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