fedora: conditional greenboot package names
Greenboot for Fedora 35 and older has several optional subpackages. Starting with v36, there is only the 'greenboot-default-health-checks' subpackage.
This commit is contained in:
parent
91e581462b
commit
2001b23610
1 changed files with 15 additions and 4 deletions
|
|
@ -6,6 +6,7 @@ import (
|
|||
"fmt"
|
||||
"strconv"
|
||||
|
||||
"github.com/osbuild/osbuild-composer/internal/common"
|
||||
"github.com/osbuild/osbuild-composer/internal/distro"
|
||||
"github.com/osbuild/osbuild-composer/internal/rpmmd"
|
||||
)
|
||||
|
|
@ -187,10 +188,6 @@ func iotCommitPackageSet(t *imageType) rpmmd.PackageSet {
|
|||
"fwupd",
|
||||
"usbguard",
|
||||
"greenboot",
|
||||
"greenboot-grub2",
|
||||
"greenboot-rpm-ostree-grub2",
|
||||
"greenboot-reboot",
|
||||
"greenboot-status",
|
||||
"ignition",
|
||||
"zezere-ignition",
|
||||
"rsync",
|
||||
|
|
@ -226,6 +223,20 @@ func iotCommitPackageSet(t *imageType) rpmmd.PackageSet {
|
|||
},
|
||||
}
|
||||
|
||||
if common.VersionLessThan(t.arch.distro.osVersion, "36") {
|
||||
ps = ps.Append(rpmmd.PackageSet{
|
||||
Include: []string{
|
||||
"greenboot-grub2",
|
||||
"greenboot-reboot",
|
||||
"greenboot-rpm-ostree-grub2",
|
||||
"greenboot-status",
|
||||
},
|
||||
},
|
||||
)
|
||||
} else {
|
||||
ps = ps.Append(rpmmd.PackageSet{Include: []string{"greenboot-default-health-checks"}})
|
||||
}
|
||||
|
||||
return ps
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue