Skip to contentSkip to conversation

new_dhcp_next_server is really new_next_server

PATCH In review Brian C. Lane 2 participants 2 messages Feb 5, 2014 – Feb 7, 2014 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 new_dhcp_next_server is really new_next_server

The variable that dhclient sets doesn't have dhcp in the name. This could cause problems with setups where the server is not the same as the dhcp server.

---
 modules.d/95nfs/nfs-lib.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
modules.d/95nfs/nfs-lib.sh +1 -1
index f5fc56d..9ced2e6 100755
@@ -97,7 +97,7 @@ nfsroot_from_dhcp() {
     [ -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_next_server
     [ -z "$server" ] && server=${new_root_path%%:*}
 }
 
Signature · 1 line
1.8.4.2

A message that is not in the archive (sent off-list or not yet received): 1391631039-29864-1-git-send-email-bcl-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org

#2 lore raw
Quoted 13 lines · Brian C. Lane

The variable that dhclient sets doesn't have dhcp in the name. This could cause problems with setups where the server is not the same as the dhcp server.

---
 modules.d/95nfs/nfs-lib.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
modules.d/95nfs/nfs-lib.sh +0 -0
index f5fc56d..9ced2e6 100755

modules.d/95nfs/nfs-lib.sh nfsroot_from_dhcp() { · line 103

Quoted 8 lines
modules.d/95nfs/nfs-lib.sh +1 -1
@@ -97,7 +97,7 @@ nfsroot_from_dhcp() {
     [ -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_next_server
     [ -z "$server" ] && server=${new_root_path%%:*}
 }
 

Thanks! Pushed.