Arch Linux

Please read this before reporting a bug:

Do NOT report bugs when a package is just outdated, or it is in Unsupported. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!

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
Task Type Feature Request
Category Packages: Core
Status Closed
Assigned To Dave Reisner (falconindy)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


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
Comment by Dave Reisner (falconindy) - Friday, 20 July 2012, 22:19 GMT
If you've gone as far as to create a kernel without module support, why do you want an initramfs?
Comment by Fabio Comolli (goranagar) - Saturday, 21 July 2012, 15:35 GMT
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.
Comment by Dave Reisner (falconindy) - Saturday, 21 July 2012, 18:42 GMT
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.