Skip to content

Commit

Permalink
LX-1144 Set MODULES=most when building initramfs (openzfs#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
John Gallagher authored and ahrens committed Jun 29, 2018
1 parent a645872 commit 202ed64
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions contrib/initramfs/conf-hooks.d/zfs
Original file line number Diff line number Diff line change
@@ -1,2 +1,16 @@
# Force the inclusion of Busybox in the initramfs.
BUSYBOX=y

# Workaround for https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/1661629
#
# When building an initrd with MODULES=dep, which ubuntu tries to do when
# installing kdump-tools, mkinitramfs tries to detect which modules are
# necessary based on the hardware and filesystem, and include only those
# moules in the image.
#
# However, the detection logic doesn't understand zfs on root, so building the
# initramfs fails. As a workaround, override MODULES to get mkinitramfs to just
# includes most modules without checking whether they are really needed. The
# result is a larger initrd image than is strictly necessary, but at least it is
# created successfully.
MODULES=most

0 comments on commit 202ed64

Please sign in to comment.