[lxc-devel] [distrobuilder/master] altLinux: Add architecture map

stgraber on Github lxc-bot at linuxcontainers.org
Sat Apr 6 16:06:11 UTC 2019


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 363 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20190406/b048c512/attachment.bin>
-------------- next part --------------
From 1b8b0e86317da93d870255b05b4f9577ca414733 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgraber at ubuntu.com>
Date: Sat, 6 Apr 2019 12:05:53 -0400
Subject: [PATCH] altLinux: Add architecture map
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: St├ęphane Graber <stgraber at ubuntu.com>
---
 shared/definition.go | 1 +
 shared/osarch.go     | 5 +++++
 2 files changed, 6 insertions(+)

diff --git a/shared/definition.go b/shared/definition.go
index 7b71f2f..5a83975 100644
--- a/shared/definition.go
+++ b/shared/definition.go
@@ -326,6 +326,7 @@ func (d *Definition) Validate() error {
 
 	validMappings := []string{
 		"alpinelinux",
+		"altlinux",
 		"archlinux",
 		"centos",
 		"debian",
diff --git a/shared/osarch.go b/shared/osarch.go
index 2671ab2..eb021fd 100644
--- a/shared/osarch.go
+++ b/shared/osarch.go
@@ -45,8 +45,13 @@ var plamoLinuxArchitectureNames = map[int]string{
 	osarch.ARCH_32BIT_INTEL_X86: "x86",
 }
 
+var altLinuxArchitectureNames = map[int]string{
+	osarch.ARCH_32BIT_INTEL_X86: "i586",
+}
+
 var distroArchitecture = map[string]map[int]string{
 	"alpinelinux": alpineLinuxArchitectureNames,
+	"altinux":     altLinuxArchitectureNames,
 	"archlinux":   archLinuxArchitectureNames,
 	"centos":      centosArchitectureNames,
 	"debian":      debianArchitectureNames,


More information about the lxc-devel mailing list