Remove updating reclass/system logic from user-data for cfg01 script
- Updating of reclass/system implemented on iso generating step.
Therefore don't need to do the same here.
Needed for specifying refspec for reclass-system
Change-Id: I5e9884ec6ab5481acab637918bc3b12097dbb91b
diff --git a/config-drive/master_config.sh b/config-drive/master_config.sh
index 6b02fab..9e76b5b 100644
--- a/config-drive/master_config.sh
+++ b/config-drive/master_config.sh
@@ -4,7 +4,6 @@
export DEPLOY_NETWORK_GW=172.16.164.1
export DEPLOY_NETWORK_NETMASK=255.255.255.192
export DNS_SERVERS=8.8.8.8
-export SYSTEM_URL=https://github.com/Mirantis/reclass-system-salt-model.git
export http_proxy=
export https_proxy=
export PIPELINES_FROM_ISO=true
@@ -26,14 +25,7 @@
echo "Preparing metadata model"
mount /dev/cdrom /mnt/
-cp -r /mnt/model/model/* /srv/salt/reclass/
-cp -r /mnt/model/model/.git /srv/salt/reclass/
-envsubst < /root/gitmodules > /srv/salt/reclass/.gitmodules
-cd /srv/salt/reclass/classes/system/
-git remote remove origin
-git remote add origin $SYSTEM_URL
-cd /srv/salt/reclass/
-git submodule update --init --recursive
+cp -rT /mnt/model/model/* /srv/salt/reclass/
chown -R root:root /srv/salt/reclass/*
chown -R root:root /srv/salt/reclass/.git*
chmod -R 644 /srv/salt/reclass/classes/cluster/*