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