From faf94d8977056ee317cdcd1521a1cc30d85b399c Mon Sep 17 00:00:00 2001 From: Jakub Jirutka Date: Fri, 26 Nov 2021 01:16:36 +0100 Subject: [PATCH] Avoid installing all linux-firmware-* packages for non-virt kernels Closes #21 --- alpine-make-vm-image | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/alpine-make-vm-image b/alpine-make-vm-image index f89baff..d17a72c 100755 --- a/alpine-make-vm-image +++ b/alpine-make-vm-image @@ -465,7 +465,12 @@ setup_mkinitfs . "base $ROOTFS $INITFS_FEATURES" #----------------------------------------------------------------------- einfo "Installing kernel linux-$KERNEL_FLAVOR" -_apk add --root . linux-$KERNEL_FLAVOR +if [ "$KERNEL_FLAVOR" = 'virt' ]; then + _apk add --root . linux-$KERNEL_FLAVOR +else + # Avoid installing *all* linux-firmware-* packages (see #21). + _apk add --root . linux-$KERNEL_FLAVOR linux-firmware-none +fi #----------------------------------------------------------------------- einfo 'Setting up extlinux bootloader'