chroot: Special case openSUSE Tumbleweed

Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
This commit is contained in:
Thomas Hipp 2019-03-06 16:29:23 +01:00
parent 77bd4eee0d
commit fa10c709b8
No known key found for this signature in database
GPG Key ID: 993408D1137B7D51

View File

@ -2,6 +2,7 @@ package main
import (
"fmt"
"strings"
lxd "github.com/lxc/lxd/shared"
@ -71,6 +72,11 @@ func managePackages(def shared.DefinitionPackages, actions []shared.DefinitionAc
}
}
// TODO: Remove this once openSUSE Tumbleweed builds properly without it.
if strings.ToLower(release) == "tumbleweed" {
manager.SetInstallFlags("install", "--allow-downgrade")
}
err = manager.Install(installablePackages)
if err != nil {
return err