MT#8773 [CARRIER] new boot option ngcpnonwrecfg

Add an option to control the reconfig of the network.
On our dev proxmox we don't want to touch the network
on the install phase.

Change-Id: I6a05df7c63389b0c2e2d1bb99da8bbd1e976dc23
changes/02/102/2
Victor Seva 11 years ago committed by Víctor Seva
parent 9fb22c0273
commit 1d9ba34bd4

@ -37,6 +37,7 @@ PRO_EDITION=false
CE_EDITION=false
NGCP_INSTALLER=false
PUPPET=''
RESTART_NETWORK=true
INTERACTIVE=false
DHCP=false
LOGO=true
@ -463,6 +464,11 @@ if checkBootParam ngcpsystemd ; then
logit "Enabling systemd support as requested via boot option ngcpsystemd"
SYSTEMD=true
fi
if checkBootParam ngcpnonwrecfg ; then
logit "Disabling reconfig network as requested via boot option ngcpnonwrecfg"
RESTART_NETWORK=false
fi
## }}}
## interactive mode {{{
@ -1216,7 +1222,9 @@ if "$RETRIEVE_MGMT_CONFIG" ; then
wget --timeout=30 -O /etc/network/interfaces "${MANAGEMENT_IP}:3000/nwconfig/$(cat ${TARGET}/etc/hostname)"
cp /etc/network/interfaces "${TARGET}/etc/network/interfaces"
fi
if "$RETRIEVE_MGMT_CONFIG" && "$RESTART_NETWORK" ; then
# restart networking for the time being only when running either in toram mode
# or not booting from NFS, once we've finished the carrier setup procedure we
# should be able to make this as our only supported default mode and drop

Loading…
Cancel
Save