fix networking issue in some Mitaka distributions 85/3485/1
authorMarco Platania <platania@research.att.com>
Mon, 17 Apr 2017 13:48:12 +0000 (09:48 -0400)
committerMarco Platania <platania@research.att.com>
Mon, 17 Apr 2017 13:48:12 +0000 (09:48 -0400)
Change-Id: I7fbb9fdd748095e413379380298f058a76de318c
Signed-off-by: Marco Platania <platania@research.att.com>
boot/asdc_install.sh
boot/mso_install.sh
boot/robot_install.sh

index e9edfaa..ff44283 100644 (file)
@@ -85,6 +85,7 @@ then
        sed -i "s/GRUB_CMDLINE_LINUX=.*/GRUB_CMDLINE_LINUX=\"net.ifnames=0 biosdevname=0\"/g" /etc/default/grub
        grub-mkconfig -o /boot/grub/grub.cfg
        sed -i "s/ens[0-9]*/eth0/g" /etc/network/interfaces.d/*.cfg
+       echo 'network: {config: disabled}' >> /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg
        echo "APT::Periodic::Unattended-Upgrade \"0\";" >> /etc/apt/apt.conf.d/10periodic
        reboot
 fi
index 76d7070..2c56716 100644 (file)
@@ -56,6 +56,7 @@ then
        sed -i "s/GRUB_CMDLINE_LINUX=.*/GRUB_CMDLINE_LINUX=\"net.ifnames=0 biosdevname=0\"/g" /etc/default/grub
        grub-mkconfig -o /boot/grub/grub.cfg
        sed -i "s/ens[0-9]*/eth0/g" /etc/network/interfaces.d/*.cfg
+       echo 'network: {config: disabled}' >> /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg
        echo "APT::Periodic::Unattended-Upgrade \"0\";" >> /etc/apt/apt.conf.d/10periodic
        reboot
 fi
index 1787f65..ed116bc 100644 (file)
@@ -55,6 +55,7 @@ then
        sed -i "s/GRUB_CMDLINE_LINUX=.*/GRUB_CMDLINE_LINUX=\"net.ifnames=0 biosdevname=0\"/g" /etc/default/grub
        grub-mkconfig -o /boot/grub/grub.cfg
        sed -i "s/ens[0-9]*/eth0/g" /etc/network/interfaces.d/*.cfg
+       echo 'network: {config: disabled}' >> /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg
        echo "APT::Periodic::Unattended-Upgrade \"0\";" >> /etc/apt/apt.conf.d/10periodic
        reboot
 fi