distro/*: remove kernel from image types

The kernel now comes from the blueprint packages even when it's not
specified.  Removing from the base packages of the image types avoids
duplication and allows for alternative kernels to be specified without
also including the default.

The latter is necessary for RHEL for Edge and Fedora IoT images (ostree
commits) that fail to build when multiple kernels are installed.

ImageType tests modified to fix expected package order.
This commit is contained in:
Achilleas Koutsou 2021-02-01 14:52:55 +01:00 committed by Tom Gundersen
parent d0923af70d
commit 8d9753a4c2
8 changed files with 24 additions and 34 deletions

View file

@ -552,7 +552,6 @@ func New() distro.Distro {
"fedora-release-iot",
"glibc", "glibc-minimal-langpack", "nss-altfiles",
"sssd-client", "libsss_sudo", "shadow-utils",
"kernel",
"dracut-config-generic", "dracut-network",
"rpm-ostree", "polkit", "lvm2",
"cryptsetup", "pinentry",
@ -614,7 +613,6 @@ func New() distro.Distro {
packages: []string{
"@Core",
"chrony",
"kernel",
"selinux-policy-targeted",
"langpacks-en",
"libxcrypt-compat",
@ -645,7 +643,6 @@ func New() distro.Distro {
filename: "disk.qcow2",
mimeType: "application/x-qemu-disk",
packages: []string{
"kernel-core",
"@Fedora Cloud Server",
"chrony",
"systemd-udev",
@ -682,7 +679,6 @@ func New() distro.Distro {
packages: []string{
"@Core",
"chrony",
"kernel",
"selinux-policy-targeted",
"spice-vdagent",
"qemu-guest-agent",
@ -717,7 +713,6 @@ func New() distro.Distro {
packages: []string{
"@Core",
"chrony",
"kernel",
"selinux-policy-targeted",
"langpacks-en",
"net-tools",
@ -755,7 +750,6 @@ func New() distro.Distro {
filename: "disk.vmdk",
mimeType: "application/x-vmdk",
packages: []string{
"kernel-core",
"@Fedora Cloud Server",
"chrony",
"systemd-udev",

View file

@ -227,7 +227,6 @@ func TestImageType_BasePackages(t *testing.T) {
basePackages: []string{
"@Core",
"chrony",
"kernel",
"selinux-policy-targeted",
"langpacks-en",
"libxcrypt-compat",
@ -235,6 +234,9 @@ func TestImageType_BasePackages(t *testing.T) {
"cloud-init",
"checkpolicy",
"net-tools",
// Default from Blueprint
"kernel",
},
bootloaderPackages: []string{
"dracut-config-generic",
@ -253,7 +255,6 @@ func TestImageType_BasePackages(t *testing.T) {
basePackages: []string{
"@Core",
"chrony",
"kernel",
"selinux-policy-targeted",
"spice-vdagent",
"qemu-guest-agent",
@ -261,6 +262,9 @@ func TestImageType_BasePackages(t *testing.T) {
"langpacks-en",
"cloud-init",
"libdrm",
// Default from Blueprint
"kernel",
},
bootloaderPackages: []string{
"dracut-config-generic",