mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
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
2c001bbe21
commit
985757ffe6
@ -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…
x
Reference in New Issue
Block a user