summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkos Chandras <mchandras@suse.de>2017-02-03 11:34:35 +0000
committerJulia Kreger <juliaashleykreger@gmail.com>2017-02-09 14:45:39 +0000
commit06183752b51a6a860c813006cf13b227588d1575 (patch)
tree159c71b4e64ad5d6deeebf2a5224dc47dad41e02
parentfd7f10b993ef5262e76d604b38cfad25aed2266d (diff)
downloadironic-python-agent-06183752b51a6a860c813006cf13b227588d1575.tar.gz
imagebuild: tinyipa: Make the install-deps.sh SUSE aware
Add zypper support in the install-deps.sh script so tinyipa can be built on SUSE distributions. Change-Id: Ie7ac36a9cab3dba825357ccd1e58290873335a68
-rwxr-xr-ximagebuild/tinyipa/install-deps.sh18
-rw-r--r--releasenotes/notes/suse-tinyipa-support-20acecd6d7b20952.yaml4
2 files changed, 16 insertions, 6 deletions
diff --git a/imagebuild/tinyipa/install-deps.sh b/imagebuild/tinyipa/install-deps.sh
index 6737856e..1c055544 100755
--- a/imagebuild/tinyipa/install-deps.sh
+++ b/imagebuild/tinyipa/install-deps.sh
@@ -1,17 +1,23 @@
#!/bin/bash
-PACKAGES="wget python-pip unzip sudo gawk squashfs-tools"
+COMMON_PACKAGES="wget python-pip unzip sudo gawk"
+APT_PACKAGES="${COMMON_PACKAGES} squashfs-tools"
+YUM_PACKAGES="${COMMON_PACKAGES} squashfs-tools"
+ZYPPER_PACKAGES="${COMMON_PACKAGES} squashfs"
echo "Installing dependencies:"
-if [ -x "/usr/bin/apt-get" ]; then
+# first zypper in case zypper-aptitude is installed
+if [ -x "/usr/bin/zypper" ]; then
+ sudo -E zypper -n install -l ${ZYPPER_PACKAGES}
+elif [ -x "/usr/bin/apt-get" ]; then
sudo -E apt-get update
- sudo -E apt-get install -y $PACKAGES
+ sudo -E apt-get install -y ${APT_PACKAGES}
elif [ -x "/usr/bin/dnf" ]; then
- sudo -E dnf install -y $PACKAGES
+ sudo -E dnf install -y ${YUM_PACKAGES}
elif [ -x "/usr/bin/yum" ]; then
- sudo -E yum install -y $PACKAGES
+ sudo -E yum install -y ${YUM_PACKAGES}
else
- echo "No supported package manager installed on system. Supported: apt, yum, dnf"
+ echo "No supported package manager installed on system. Supported: apt, yum, dnf, zypper"
exit 1
fi
diff --git a/releasenotes/notes/suse-tinyipa-support-20acecd6d7b20952.yaml b/releasenotes/notes/suse-tinyipa-support-20acecd6d7b20952.yaml
new file mode 100644
index 00000000..e901a3ea
--- /dev/null
+++ b/releasenotes/notes/suse-tinyipa-support-20acecd6d7b20952.yaml
@@ -0,0 +1,4 @@
+---
+features:
+ - Support for zypper has been added to the TinyIPA install-deps script
+ in order to support building TinyIPA on SUSE.