[lxc-devel] [distrobuilder/master] chroot: Special case openSUSE 15.x

monstermunchkin on Github lxc-bot at linuxcontainers.org
Wed Mar 6 16:25:06 UTC 2019


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 364 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20190306/c1ee30b4/attachment.bin>
-------------- next part --------------
From 06bc60228aa6d228234481261414cf7ad0382062 Mon Sep 17 00:00:00 2001
From: Thomas Hipp <thomas.hipp at canonical.com>
Date: Wed, 6 Mar 2019 17:17:49 +0100
Subject: [PATCH] chroot: Special case openSUSE 15.x

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

diff --git a/distrobuilder/chroot.go b/distrobuilder/chroot.go
index 427d9ba..2032e3a 100644
--- a/distrobuilder/chroot.go
+++ b/distrobuilder/chroot.go
@@ -72,8 +72,8 @@ func managePackages(def shared.DefinitionPackages, actions []shared.DefinitionAc
 		}
 	}
 
-	// TODO: Remove this once openSUSE Tumbleweed builds properly without it.
-	if strings.ToLower(release) == "tumbleweed" {
+	// TODO: Remove this once openSUSE builds properly without it. OpenSUSE 42.3 doesn't support this flag.
+	if strings.ToLower(release) == "tumbleweed" || strings.HasPrefix(release, "15") {
 		manager.SetInstallFlags("install", "--allow-downgrade")
 	}
 


More information about the lxc-devel mailing list