diff --git a/pkg/deploy/generator/scripts/rpVMSS.sh b/pkg/deploy/generator/scripts/rpVMSS.sh index 879483f1222..e8bf7d29658 100644 --- a/pkg/deploy/generator/scripts/rpVMSS.sh +++ b/pkg/deploy/generator/scripts/rpVMSS.sh @@ -5,18 +5,11 @@ echo "setting ssh password authentication" sed -i 's/PasswordAuthentication no/PasswordAuthentication yes/g' /etc/ssh/sshd_config systemctl reload sshd.service -#Adding retry logic to yum commands in order to avoid stalling out on resource locks -for attempt in {1..5}; do - echo "running RHUI fix" - yum update -y --disablerepo='*' --enablerepo='rhui-microsoft-azure*' - if [[ ${attempt} -lt 5 ]]; then sleep 10; else exit 1; fi -done +echo "running RHUI fix" +yum update -y --disablerepo='*' --enablerepo='rhui-microsoft-azure*' -for attempt in {1..5}; do - echo "running yum update" - yum -y -x WALinuxAgent -x WALinuxAgent-udev update --allowerasing - if [[ ${attempt} -lt 5 ]]; then sleep 10; else exit 1; fi -done +echo "running yum update" +yum -y -x WALinuxAgent -x WALinuxAgent-udev update --allowerasing echo "extending partition table" # Linux block devices are inconsistently named