From b360c4a3fe5490f61fe1f2d9f93bfec0ba70741c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Fri, 25 Oct 2024 18:17:36 +0200 Subject: [PATCH] Limit initramfs size in Fedora HVM even more Initramfs at 22MB is small enough to start in PVH mode, but too big to start in HVM mode. Exclude tpm2-tss dracut module to save another 5MB, which makes it work in HVM mode too. QubesOS/qubes-issues#8540 QubesOS/qubes-issues#5212 --- boot/dracut-qubes.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/boot/dracut-qubes.conf b/boot/dracut-qubes.conf index 31efc26f..9f65bbea 100644 --- a/boot/dracut-qubes.conf +++ b/boot/dracut-qubes.conf @@ -10,3 +10,7 @@ drivers="xen-blkfront dm-mod dm-thin-pool dm-persistent-data ext4 overlay" # Remove also other modules not relevant for qubes VM, due to known filesystem # setup, and not interacting with VGA console during boot. omit_dracutmodules+=" ifcfg qemu-net i18n resume mdraid terminfo crypt lunmask nvdimm nss-softokn " +# Exclude tpm stack too, as it's irrelevant for a VM (at least as long as +# confidential computing is not a Qubes feature). This saves about 5MB (20%) of +# initramfs size. +omit_dracutmodules+=" tpm2-tss "