aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/disk-image-builder/centos/scripts-remote
diff options
context:
space:
mode:
authorMatej Klotton <mklotton@cisco.com>2017-02-14 07:45:01 +0100
committerMatej Klotton <mklotton@cisco.com>2017-02-15 13:22:25 +0100
commite5a63c071996f351d6037ba8a08ff8eecf32ca39 (patch)
tree8d7d3e7115c56d05f7229ef5dfdcf9203cb79b73 /resources/tools/disk-image-builder/centos/scripts-remote
parent005e7e00d0e9b9d4c0796c998b88d639ee316033 (diff)
Fix Centos Virl deployment and image build want list
Change-Id: I65d54fff4f936444bed3382ee21a260cf718bafd Signed-off-by: Matej Klotton <mklotton@cisco.com>
Diffstat (limited to 'resources/tools/disk-image-builder/centos/scripts-remote')
-rw-r--r--resources/tools/disk-image-builder/centos/scripts-remote/post-install.sh16
1 files changed, 13 insertions, 3 deletions
diff --git a/resources/tools/disk-image-builder/centos/scripts-remote/post-install.sh b/resources/tools/disk-image-builder/centos/scripts-remote/post-install.sh
index 9ae1608203..bd45d2330c 100644
--- a/resources/tools/disk-image-builder/centos/scripts-remote/post-install.sh
+++ b/resources/tools/disk-image-builder/centos/scripts-remote/post-install.sh
@@ -15,6 +15,18 @@
TEMP_PATH="/root/temp"
+echo ==========================Remove NetworkManager============================
+systemctl disable NetworkManager
+systemctl enable network
+yum -y remove NetworkManager
+
+cat - > /etc/sysconfig/network-scripts/ifcfg-eth0 <<"_EOF"
+DEVICE=eth0
+BOOTPROTO=dhcp
+ONBOOT=yes
+_EOF
+echo =======================End Remove NetworkManager===========================
+
###
### RPMs
###
@@ -27,11 +39,9 @@ echo "********** INSTALLING RPMs **********"
# problems during the first one(s).
echo ==========================yum update==============================
yum clean all
-yum install -y @base
yum install -y deltarpm
yum update -y
-yum -y install epel-release
-yum update -y
+yum install -y @base epel-release
echo ==========================end yum update==============================
attempt=1
MAX_ATTEMPTS=3