forked from openzfs/zfs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LX-1144 Set MODULES=most when building initramfs (openzfs#14)
- Loading branch information
Showing
1 changed file
with
14 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |