chroot: Special case openSUSE Tumbleweed
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
This commit is contained in:
parent
77bd4eee0d
commit
fa10c709b8
@ -2,6 +2,7 @@ package main
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"strings"
|
||||||
|
|
||||||
lxd "github.com/lxc/lxd/shared"
|
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)
|
err = manager.Install(installablePackages)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
Loading…
x
Reference in New Issue
Block a user