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:
Sheng Yang 2012-05-29 16:45:52 -07:00
parent 2c001bbe21
commit 985757ffe6

View File

@ -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
;;