[lxc-devel] [lxc/master] lxc-create -t debian fails on ppc64el arch

hallyn on Github lxc-bot at linuxcontainers.org
Fri Sep 16 13:38:18 UTC 2016


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 512 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20160916/b85e6b20/attachment.bin>
-------------- next part --------------
From bfbf793616ce36ec63bac2cf582474c14cecb712 Mon Sep 17 00:00:00 2001
From: Thierry Fauck <tfauck at free.fr>
Date: Fri, 16 Sep 2016 08:34:41 -0500
Subject: [PATCH] lxc-create -t debian fails on ppc64el arch

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 at free.fr>
Signed-off-by: Serge Hallyn <serge at hallyn.com>
---
 templates/lxc-debian.in | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/templates/lxc-debian.in b/templates/lxc-debian.in
index 6420b39..b45180d 100644
--- a/templates/lxc-debian.in
+++ b/templates/lxc-debian.in
@@ -654,6 +654,8 @@ elif [ "$arch" = "x86_64" ]; then
     arch="amd64"
 elif [ "$arch" = "armv7l" ]; then
     arch="armhf"
+elif [ "$arch" = "ppc64le" ]; then
+    arch="ppc64el"
 elif [ "$arch" = "mips" -a "$littleendian" = "yes" ]; then
     arch="mipsel"
 elif [ "$arch" = "mips64" -a "$littleendian" = "yes" ]; then


More information about the lxc-devel mailing list