distro/fedora: redo package set for qcow2

Our package set was quite outdated. Let's sync it with the Fedora Cloud
kickstart:
https://pagure.io/fedora-kickstarts/blob/c3b160775a3b159f949ba931dcb68e520a460e12/f/fedora-cloud-base.ks

I manually compared built images and our image contain kernel, kernel-modules
and linux-firmware above the official package set:

- removing kernel and kernel-modules is tricky, because we always assume that
  the default kernel is called kernel.
- removing linux-firmware is a big hack, since it breaks the RPM dependencies
  inside the image.

Thus, let's ignore these for now, it's definitely better than before.

Signed-off-by: Ondřej Budai <ondrej@budai.cz>
This commit is contained in:
Ondřej Budai 2023-06-05 15:50:30 +02:00 committed by Ondřej Budai
parent 8588fa8d5c
commit f5049c143c

View file

@ -11,48 +11,22 @@ import (
"github.com/osbuild/osbuild-composer/internal/rpmmd"
)
func ec2CommonPackageSet(t *imageType) rpmmd.PackageSet {
func qcow2CommonPackageSet(t *imageType) rpmmd.PackageSet {
return rpmmd.PackageSet{
Include: []string{
"@core",
"chrony",
"langpacks-en",
"libxcrypt-compat",
"checkpolicy",
"net-tools",
},
Exclude: []string{
"dracut-config-rescue",
"geolite2-city",
"geolite2-country",
"zram-generator-defaults",
},
}
}
func qcow2CommonPackageSet(t *imageType) rpmmd.PackageSet {
ps := rpmmd.PackageSet{
Include: []string{
"@Fedora Cloud Server",
"chrony",
"systemd-udev",
"chrony", // not mentioned in the kickstart, anaconda pulls it when setting the timezone
"langpacks-en",
"qemu-guest-agent",
},
Exclude: []string{
"dracut-config-rescue",
"etables",
"firewalld",
"geolite2-city",
"geolite2-country",
"gobject-introspection",
"plymouth",
"zram-generator-defaults",
"grubby-deprecated",
"extlinux-bootloader",
},
}
return ps
}
func vhdCommonPackageSet(t *imageType) rpmmd.PackageSet {