FS#30775 - mkinitcpio refuses to create initramfs for kernel compiled without module support
Attached to Project:
Arch Linux
Opened by Fabio Comolli (goranagar) - Friday, 20 July 2012, 22:07 GMT
Last edited by Dave Reisner (falconindy) - Saturday, 21 July 2012, 18:42 GMT
Opened by Fabio Comolli (goranagar) - Friday, 20 July 2012, 22:07 GMT
Last edited by Dave Reisner (falconindy) - Saturday, 21 July 2012, 18:42 GMT
|
Details
Description:
mkinitcpio exits immediately saying that the module directory does not exist when the kernel is compiled without module support. Additional info: * package version: mkinitcpio 0.9.2-2 Steps to reproduce: * build your own kernel without modules support * run mkinitcpio Workaround: just create and empty directory /usr/lib/modules/<custom-kernel-version> and then mkinitcpio works complaining that no modules are added to the initramfs, obviously. After that the new kernel and the new initramfs work as expected. |
This task depends upon
Closed by Dave Reisner (falconindy)
Saturday, 21 July 2012, 18:42 GMT
Reason for closing: Won't implement
Saturday, 21 July 2012, 18:42 GMT
Reason for closing: Won't implement
Comment by
Dave Reisner (falconindy) - Friday,
20 July 2012, 22:19 GMT
Comment by
Fabio Comolli (goranagar) -
Saturday, 21 July 2012, 15:35 GMT
Comment by
Dave Reisner (falconindy) -
Saturday, 21 July 2012, 18:42 GMT
If you've gone as far as to create a kernel without module
support, why do you want an initramfs?
To be able to resume from hibernation using uswsusp (for
compression and encryption) and, more important, I use zfs as root
filesystem and thus I need the initramfs to be able to import the
root pool and mount the root dataset.
Not interested in supporting this. If you've gone as far as to
patch the kernel to support ZFS, you can be bothered to add a
module directory. Few and far between are the cases where someone
builds a static kernel but wants an initramfs.