]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
lxc-create -t debian fails on ppc64el arch
authorThierry Fauck <tfauck@free.fr>
Fri, 16 Sep 2016 13:34:41 +0000 (08:34 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Fri, 18 Nov 2016 01:27:00 +0000 (20:27 -0500)
Template catches arch from uname -m, but for ppc64el system, arch reports ppc64le
which doesn't match image repo.

Signed-off-by: Thierry Fauck <tfauck@free.fr>
Signed-off-by: Serge Hallyn <serge@hallyn.com>
templates/lxc-debian.in

index 4189ef3178bc4d452ba6ad69d9a8a6a5113a067b..21e5b4fcc5ce608db4386858df7ab17b606eea02 100644 (file)
@@ -519,6 +519,8 @@ elif [ "$arch" = "x86_64" ]; then
     arch="amd64"
 elif [ "$arch" = "armv7l" ]; then
     arch="armhf"
+elif [ "$arch" = "ppc64le" ]; then
+    arch="ppc64el"
 fi
 hostarch=$arch