Skip to content

Commit

Permalink
distro: conditionally include basesystem/filesystem
Browse files Browse the repository at this point in the history
The `basesystem` package is being obsoleted by `filesystem` in Rawhide
(F43). Change the definition of the `iot-commit` to conditionally
include the correct package based on the Fedora version.

Signed-off-by: Micah Abbott <[email protected]>
  • Loading branch information
miabbott committed Feb 7, 2025
1 parent 6191f47 commit 57eddd6
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion pkg/distro/fedora/package_sets.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ func iotCommitPackageSet(t *imageType) rpmmd.PackageSet {
"atheros-firmware",
"attr",
"authselect",
"basesystem",
"bash",
"bash-completion",
"brcmfmac-firmware",
Expand Down Expand Up @@ -196,6 +195,22 @@ func iotCommitPackageSet(t *imageType) rpmmd.PackageSet {
},
})
}
// See https://pagure.io/fedora-iot/ostree/pull-request/72
// See https://src.fedoraproject.org/rpms/filesystem/c/3f741bf2a89c9e1bb685943c41fd298e6683dd50?branch=rawhide
if common.VersionLessThan(t.arch.distro.osVersion, "43") {
ps = ps.Append(rpmmd.PackageSet{
Include: []string{
"basesystem",
},
})
}
if common.VersionGreaterThanOrEqual(t.arch.distro.osVersion, "43") {
ps = ps.Append(rpmmd.PackageSet{
Include: []string{
"filesystem",
},
})
}

return ps
}
Expand Down

0 comments on commit 57eddd6

Please sign in to comment.