Avoid installing all linux-firmware-* packages for non-virt kernels

Closes #21
This commit is contained in:
Jakub Jirutka 2021-11-26 01:16:36 +01:00
parent 7bce94db74
commit faf94d8977

View file

@ -465,7 +465,12 @@ setup_mkinitfs . "base $ROOTFS $INITFS_FEATURES"
#-----------------------------------------------------------------------
einfo "Installing kernel 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'