Skip to content
Snippets Groups Projects
Commit 23c9946a authored by Michael Walle's avatar Michael Walle Committed by Prafulla Wadaskar
Browse files

lsxl: unset ncip for rescue mode


Instead of using the serverip we get from the DHCP server, implicitly use
the broadcast address, which is automatically set when no ncip environment
variable is set. That way it isn't necessary to use a special DHCP
configuration to set the netconsole peer.

Signed-off-by: default avatarMichael Walle <michael@walle.cc>
Cc: Prafulla Wadaskar <prafulla@marvell.com>
parent 7202e8ae
No related branches found
No related tags found
No related merge requests found
......@@ -49,9 +49,8 @@
* you can do this only with a working network connection. Therefore, a random
* ethernet address is generated if none is set and a DHCP request is sent.
* After a successful DHCP response is received, the network settings are
* configured and the ncip parameter is set to the serverip. Eg. for a working
* resuce mode, you should set 'next-server' to the host where the netconsole
* client is started.
* configured and the ncip is unset. Therefore, all netconsole packets are
* broadcasted.
* Additionally, the bootsource is set to 'rescue'.
*/
......
......@@ -146,7 +146,7 @@
"config_nc_dhcp=setenv autoload_old ${autoload}; " \
"setenv autoload no " \
"&& bootp " \
"&& setenv ncip ${serverip} " \
"&& setenv ncip " \
"&& setenv autoload ${autoload_old}; " \
"setenv autoload_old\0" \
"standard_env=setenv ipaddr; setenv netmask; setenv serverip; " \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment