Skip to content

Commit e6cb7f2

Browse files
authored
systemvm: have flags to check x86_64 to install specifics for amd64 arch (#9600)
This flips conditional checks to check specifically for x86_64/amd64 to install dependencies in systemvm. Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
1 parent 5a496e7 commit e6cb7f2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tools/appliance/systemvmtemplate/scripts/install_systemvm_packages.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ function install_packages() {
8383
apt_clean
8484

8585
# 32 bit architecture support for vhd-util
86-
if [[ "${arch}" != "i386" && "${arch}" != "arm64" ]]; then
86+
if [[ "${arch}" != "i386" && "${arch}" == "amd64" ]]; then
8787
dpkg --add-architecture i386
8888
apt-get update
8989
${apt_get} install libuuid1:i386 libc6:i386
@@ -96,6 +96,8 @@ function install_packages() {
9696
add-apt-repository "deb [arch=arm64] https://download.docker.com/linux/debian $(lsb_release -cs) stable"
9797
elif [ "${arch}" == "amd64" ]; then
9898
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable"
99+
elif [ "${arch}" == "s390x" ]; then
100+
add-apt-repository "deb [arch=s390x] https://download.docker.com/linux/debian $(lsb_release -cs) stable"
99101
else
100102
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable"
101103
fi
@@ -104,7 +106,7 @@ function install_packages() {
104106

105107
apt_clean
106108

107-
if [ "${arch}" != "arm64" ]; then
109+
if [ "${arch}" == "amd64" ]; then
108110
install_vhd_util
109111
# Install xenserver guest utilities as debian repos don't have it
110112
wget --no-check-certificate https://download.cloudstack.org/systemvm/debian/xe-guest-utilities_7.20.2-0ubuntu1_amd64.deb

0 commit comments

Comments
 (0)