[lxc-devel] [PATCH 1/2] ubuntu: Add support for arm64 and ppc64el
Stéphane Graber
stgraber at ubuntu.com
Tue Jan 28 17:46:01 UTC 2014
Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>
---
templates/lxc-ubuntu.in | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/templates/lxc-ubuntu.in b/templates/lxc-ubuntu.in
index 74d6eb4..b325ee4 100644
--- a/templates/lxc-ubuntu.in
+++ b/templates/lxc-ubuntu.in
@@ -658,6 +658,10 @@ else
arch="amd64"
elif [ "$arch" = "armv7l" ]; then
arch="armhf"
+ elif [ "$arch" = "aarch64" ]; then
+ arch="arm64"
+ elif [ "$arch" = "ppc64le" ]; then
+ arch="ppc64el"
fi
fi
@@ -712,8 +716,13 @@ if [ $hostarch = "i386" -a $arch = "amd64" ]; then
exit 1
fi
-if [ $hostarch = "armhf" -o $hostarch = "armel" ] && \
- [ $arch != "armhf" -a $arch != "armel" ]; then
+if [ $hostarch = "armhf" -o $hostarch = "armel" -o $hostarch = "arm64" ] && \
+ [ $arch != "armhf" -a $arch != "armel" -a $arch != "arm64" ]; then
+ echo "can't create $arch container on $hostarch"
+ exit 1
+fi
+
+if [ $hostarch = "arm64" ] && [ $arch != "arm64" ]; then
echo "can't create $arch container on $hostarch"
exit 1
fi
--
1.8.5.3
More information about the lxc-devel
mailing list