diff --git a/tools/appliance/definitions/systemvm64template/cleanup.sh b/tools/appliance/definitions/systemvm64template/cleanup.sh index 701d8d84000..3b1d4bf9f88 100644 --- a/tools/appliance/definitions/systemvm64template/cleanup.sh +++ b/tools/appliance/definitions/systemvm64template/cleanup.sh @@ -14,7 +14,3 @@ echo "cleaning up udev rules" rm /etc/udev/rules.d/70-persistent-net.rules rm -rf /dev/.udev/ rm /lib/udev/rules.d/75-persistent-net-generator.rules - -echo "Adding a 2 sec delay to the interface up, to make the dhclient happy" -echo "pre-up sleep 2" >> /etc/network/interfaces - diff --git a/tools/appliance/definitions/systemvm64template/configure_networking.sh b/tools/appliance/definitions/systemvm64template/configure_networking.sh new file mode 100644 index 00000000000..eca0d5c1c45 --- /dev/null +++ b/tools/appliance/definitions/systemvm64template/configure_networking.sh @@ -0,0 +1,2 @@ +echo "Adding a 2 sec delay to the interface up, to make the dhclient happy" +echo "pre-up sleep 2" >> /etc/network/interfaces diff --git a/tools/appliance/definitions/systemvm64template/definition.rb b/tools/appliance/definitions/systemvm64template/definition.rb index de776f38bfb..d1aeb28972e 100644 --- a/tools/appliance/definitions/systemvm64template/definition.rb +++ b/tools/appliance/definitions/systemvm64template/definition.rb @@ -47,6 +47,7 @@ Veewee::Definition.declare({ "configure_grub.sh", "postinstall.sh", "cleanup.sh", + "configure_networking.sh", "zerodisk.sh" ], :postinstall_timeout => "10000" diff --git a/tools/appliance/definitions/systemvmtemplate/cleanup.sh b/tools/appliance/definitions/systemvmtemplate/cleanup.sh index 701d8d84000..3b1d4bf9f88 100644 --- a/tools/appliance/definitions/systemvmtemplate/cleanup.sh +++ b/tools/appliance/definitions/systemvmtemplate/cleanup.sh @@ -14,7 +14,3 @@ echo "cleaning up udev rules" rm /etc/udev/rules.d/70-persistent-net.rules rm -rf /dev/.udev/ rm /lib/udev/rules.d/75-persistent-net-generator.rules - -echo "Adding a 2 sec delay to the interface up, to make the dhclient happy" -echo "pre-up sleep 2" >> /etc/network/interfaces - diff --git a/tools/appliance/definitions/systemvmtemplate/configure_networking.sh b/tools/appliance/definitions/systemvmtemplate/configure_networking.sh new file mode 100644 index 00000000000..eca0d5c1c45 --- /dev/null +++ b/tools/appliance/definitions/systemvmtemplate/configure_networking.sh @@ -0,0 +1,2 @@ +echo "Adding a 2 sec delay to the interface up, to make the dhclient happy" +echo "pre-up sleep 2" >> /etc/network/interfaces diff --git a/tools/appliance/definitions/systemvmtemplate/definition.rb b/tools/appliance/definitions/systemvmtemplate/definition.rb index d2e25df2d53..21210f06ec8 100644 --- a/tools/appliance/definitions/systemvmtemplate/definition.rb +++ b/tools/appliance/definitions/systemvmtemplate/definition.rb @@ -47,6 +47,7 @@ Veewee::Definition.declare({ "configure_grub.sh", "postinstall.sh", "cleanup.sh", + "configure_networking.sh", "zerodisk.sh" ], :postinstall_timeout => "10000"