Skip to content

Commit

Permalink
Limit initramfs size in Fedora HVM even more
Browse files Browse the repository at this point in the history
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
  • Loading branch information
marmarek committed Oct 25, 2024
1 parent 40dfa72 commit b360c4a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions boot/dracut-qubes.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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 "

0 comments on commit b360c4a

Please sign in to comment.