mirror of https://github.com/apache/cloudstack.git
CS-14421: Clean /etc/network/interfaces when sysytemvm reboot
In order to make sure next time, booting process would use cloud-early-config's setup, rather than networking scripts to bring up interfaces. Reviewed-by: Kelven Yang
This commit is contained in:
parent
331b89b7e1
commit
3131bd4d5e
|
|
@ -696,11 +696,8 @@ setup_elbvm() {
|
|||
|
||||
setup_default() {
|
||||
cat > /etc/network/interfaces << EOF
|
||||
auto lo eth0
|
||||
auto lo
|
||||
iface lo inet loopback
|
||||
|
||||
iface eth0 inet static
|
||||
|
||||
EOF
|
||||
}
|
||||
|
||||
|
|
@ -895,7 +892,9 @@ start)
|
|||
;;
|
||||
|
||||
stop)
|
||||
log_action_begin_msg "Stopping cloud-early-config (noop)"
|
||||
log_action_begin_msg "Stopping cloud-early-config"
|
||||
#Override old system's interface setting
|
||||
setup_default;
|
||||
log_action_end_msg 0
|
||||
;;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue