X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=vagrant%2Fbaseline%2Fsystem_reseal.sh;h=07a0531777d120e61a4d1fd83ac5a85009f86e2a;hb=f60c1cf9409ba83fdec8669a360d45b5d428e307;hp=0b2fb8d44de8e920e0a72e53c8acc8d972e0af6b;hpb=c6aa8ac5aad906d18aa9ff9a6b1621d94fc3f2e6;p=releng%2Fbuilder.git diff --git a/vagrant/baseline/system_reseal.sh b/vagrant/baseline/system_reseal.sh index 0b2fb8d44d..07a0531777 100644 --- a/vagrant/baseline/system_reseal.sh +++ b/vagrant/baseline/system_reseal.sh @@ -21,6 +21,21 @@ rm -rf ~/.viminfo /etc/ssh/ssh*key* # kill any cloud-init related bits rm -rf /var/lib/cloud/* +if [ -e /usr/bin/facter ] +then + if [ `/usr/bin/facter operatingsystem` = 'Ubuntu' ] + then + rm -rf /etc/hostname* /etc/hosts /etc/network/interfaces /etc/network/interfaces.*.bak~ + cat <> /etc/network/interfaces +# Used by ifup(8) and ifdown(8). See the interfaces(5) manpage or +# /usr/share/doc/ifupdown/examples for more information. +# The loopback network interface +auto lo +iface lo inet loopback +EOINT + fi +fi + echo "********************************************" echo "* PLEASE SNAPSHOT IMAGE AT THIS TIME *" echo "********************************************"