Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

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

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#8490 - mkinitcpio image incorrect when MODULES!=null and HOOKS="base"

Attached to Project: Arch Linux
Opened by Joel McKee Cooper (mckooper) - Friday, 02 November 2007, 22:22 GMT
Last edited by Thomas Bächler (brain0) - Monday, 26 November 2007, 13:01 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Tobias Powalowski (tpowa)
Aaron Griffin (phrakture)
Thomas Bächler (brain0)
Architecture All
Severity Medium
Priority Normal
Reported Version 2007.08-2
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

mkinitcpio creates a non-functional image if MODULES is populated but HOOKS does not contain any hooks with modules.

Additional info:

using mkinitcpio 0.5.15-2

Steps to reproduce:

For example, I've got nfsroot systems that really only need:

MODULES="e1000"
HOOKS="base"

But using that config yields a kernel panic because the e1000 module never gets loaded. But, if I add some other hook
(that I don't need)

MODULES="e1000"
HOOKS="base fw"

Things work fine.

Also, if I hack /lib/initcpio/functions I don't have to have any hooks but "base" for the image to work correctly

@@ -137,7 +137,7 @@
fi
}

-HAS_MODULES="n"
+HAS_MODULES="y"
#modules are handled specially in order to enable autodetection
add_module ()
{

This task depends upon

Closed by  Thomas Bächler (brain0)
Monday, 26 November 2007, 13:01 GMT
Reason for closing:  Fixed
Comment by Thomas Bächler (brain0) - Saturday, 03 November 2007, 08:36 GMT
I cannot find a mistake in the code here. HAS_MODULES should be set to 'y' when e1000 is added. Need to do more testing.
Comment by Thomas Bächler (brain0) - Saturday, 03 November 2007, 09:00 GMT Comment by Joel McKee Cooper (mckooper) - Monday, 05 November 2007, 16:25 GMT
Works great - thanks!
Comment by Thomas Bächler (brain0) - Monday, 05 November 2007, 17:13 GMT
Then mkinitcpio should get a new release, maybe I will find some other bugs to fix first.
Comment by Tobias Powalowski (tpowa) - Monday, 26 November 2007, 07:41 GMT
thomas i think we can close this or not?

Loading...