Skip to content

Commit

Permalink
debian: reduce initramfs size
Browse files Browse the repository at this point in the history
Build initramfs with only required modules, not all of them. Otherwise
it's too big to boot with default 400M.
Additionally disable looking for suspend-to-disk signature, this feature
is never used on Qubes VM (swap device is not persistent).

Fixes QubesOS/qubes-issues#8277
  • Loading branch information
marmarek committed Jun 26, 2023
1 parent 6c0246c commit 9efc9e3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions debian/qubes-kernel-vm-support.install
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
usr/share/initramfs-tools/conf.d/qubes.conf
usr/share/initramfs-tools/scripts/local-top/scrub_pages
usr/share/initramfs-tools/scripts/local-top/qubes_cow_setup
usr/share/initramfs-tools/hooks/qubes_vm
Expand Down
2 changes: 2 additions & 0 deletions initramfs-tools/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@ install:
$(DESTDIR)/usr/share/initramfs-tools/scripts/local-top/scrub_pages
install -D qubes_vm \
$(DESTDIR)/usr/share/initramfs-tools/hooks/qubes_vm
install -m 0644 -D qubes.conf \
$(DESTDIR)/usr/share/initramfs-tools/conf.d/qubes.conf

4 changes: 4 additions & 0 deletions initramfs-tools/qubes.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# reduce initramfs size
MODULES=dep
# there is no suspend-to-disk for VMs
RESUME=none

0 comments on commit 9efc9e3

Please sign in to comment.