diskimage-builder/diskimage_builder/elements/ubuntu-minimal/package-installs.yaml
Michael Johnson e433aebf7d Add DIB_UBUNTU_KERNEL to ubuntu-minimal
This patch adds a new environment variable to the ubuntu-minimal
element called DIB_UBUNTU_KERNEL that allows you to specify the kernel
meta package that will be using to install the kernel inside the image.
It supports "linux-image-generic" (The default), "linux-image-kvm", and
"linux-image-virtual".
This allows building images that are smaller in size (~200MB smaller
qcow2) that have only the kernel modules necessary for virtual
machines.

Change-Id: I8ce65e1d357d15e8ed8995ad1dcaea02bbd1986f
2019-06-20 10:18:23 -07:00

17 lines
552 B
YAML

linux-image-generic:
not-arch: arm64
when: DIB_UBUNTU_KERNEL = linux-image-generic
linux-image-kvm:
not-arch: arm64
when: DIB_UBUNTU_KERNEL = linux-image-kvm
linux-image-virtual:
not-arch: arm64
when: DIB_UBUNTU_KERNEL = linux-image-virtual
# TODO(ianw): this is Xenial specific, for now. This kernel works
# much better, however, including better support for cdrom's for
# config-drive. We'll need to filter this further for future
# releases; maybe add a $DIB_RELEASE filter too?
linux-generic-hwe-16.04:
arch: arm64
initramfs-tools: