From 5bc9fdb3f8a1328fa13a23dbaa289f62a9fc9473 Mon Sep 17 00:00:00 2001 From: rallytime Date: Mon, 24 Oct 2016 12:58:21 -0600 Subject: [PATCH] Install yum-utils before doing anything else in Amazon Linux --- bootstrap-salt.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bootstrap-salt.sh b/bootstrap-salt.sh index b568ae8..82c338e 100755 --- a/bootstrap-salt.sh +++ b/bootstrap-salt.sh @@ -4089,6 +4089,10 @@ install_scientific_linux_check_services() { install_amazon_linux_ami_deps() { + # We need to install yum-utils before doing anything else when installing on + # Amazon Linux ECS-optimized images. See issue #974. + yum -y install yum-utils + ENABLE_EPEL_CMD="" if [ $_DISABLE_REPOS -eq $BS_TRUE ]; then ENABLE_EPEL_CMD="--enablerepo=${_EPEL_REPO}" @@ -4120,7 +4124,7 @@ _eof fi fi - __PACKAGES="PyYAML python-crypto python-msgpack python-zmq python26-ordereddict python-jinja2 python-requests yum-utils" + __PACKAGES="PyYAML python-crypto python-msgpack python-zmq python26-ordereddict python-jinja2 python-requests" # shellcheck disable=SC2086 yum -y install ${__PACKAGES} ${ENABLE_EPEL_CMD} || return 1