diskimage-builder/diskimage_builder/elements/ubuntu-minimal/package-installs.yaml
Ian Wienand 339d713527 Revert "Revert "ubuntu-minimal : only install 16.04 HWE kernel on xenial""
This reverts commit 6e549c33ac.

It uses the new multiple-parameter matching format from
Idff7b067ad4255e6fc4138f7eff313a81b75c8ba to actually do what it says.

Change-Id: I4656ff1a5c46bcfbd8587f2f541825f4ad08820f
2020-05-27 06:18:02 +10:00

37 lines
900 B
YAML

linux-image-generic:
- not-arch: arm64
when: DIB_UBUNTU_KERNEL = linux-image-generic
- arch: arm64
when:
- DIB_RELEASE != xenial
- DIB_UBUNTU_KERNEL = linux-image-generic
# On ARM64/Xenial install the HWE kernel as generic because the base
# kernel is very old and causes problems.
linux-generic-hwe-16.04:
arch: arm64
when:
- DIB_RELEASE = xenial
- DIB_UBUNTU_KERNEL = linux-image-generic
# NOTE: there isn't actually an arm64 linux-image-kvm, but we don't
# have a way to error out here.
linux-image-kvm:
not-arch: arm64
when: DIB_UBUNTU_KERNEL = linux-image-kvm
linux-image-virtual:
when: DIB_UBUNTU_KERNEL = linux-image-virtual
linux-generic-hwe-18.04:
when:
- DIB_UBUNTU_KERNEL = linux-image-hwe
- DIB_RELEASE = bionic
linux-generic-hwe-20.04:
when:
- DIB_UBUNTU_KERNEL = linux-image-hwe
- DIB_RELEASE = focal
initramfs-tools: