[lxc-devel] [distrobuilder/master] distrobuilder: fix missing arch

monstermunchkin on Github lxc-bot at linuxcontainers.org
Wed Feb 14 17:16:37 UTC 2018


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 362 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20180214/4d773c11/attachment.bin>
-------------- next part --------------
From 6e5708cc77973b259e7cb4fc2aa49afd258612e4 Mon Sep 17 00:00:00 2001
From: Thomas Hipp <thomas.hipp at canonical.com>
Date: Wed, 14 Feb 2018 18:15:29 +0100
Subject: [PATCH] distrobuilder: fix missing arch

Signed-off-by: Thomas Hipp <thomas.hipp at canonical.com>
---
 distrobuilder/main.go | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/distrobuilder/main.go b/distrobuilder/main.go
index f335a53..b7c626d 100644
--- a/distrobuilder/main.go
+++ b/distrobuilder/main.go
@@ -150,6 +150,8 @@ func run(c *cli.Context) error {
 		if !ok {
 			err = fmt.Errorf("Missing mapping for '%s'", def.Image.Distribution)
 		}
+	} else {
+		arch = def.Image.Arch
 	}
 	if err != nil {
 		return fmt.Errorf("Failed to determine arch name: %s", err)


More information about the lxc-devel mailing list