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#32532 - [mkinitcpio] autodetect throws error when no modules are needed

Attached to Project: Arch Linux
Opened by Yardena Cohen (yardenac) - Wednesday, 07 November 2012, 22:43 GMT
Last edited by Dave Reisner (falconindy) - Sunday, 11 November 2012, 02:59 GMT
Task Type Bug Report
Category Packages
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


When auto_modules returns nothing (i.e. no modules needed to boot), mkinitcpio throws this error:

/usr/lib/initcpio/install/autodetect: line 27: _autodetect_cache["$m"]: bad array subscript

It should check to see if $mods or $m is empty, and fail gracefully!

Steps to reproduce: run a custom kernel where no modules are necessary (such as linux-linode in AUR)
This task depends upon

Closed by  Dave Reisner (falconindy)
Sunday, 11 November 2012, 02:59 GMT
Reason for closing:  Fixed
Additional comments about closing:  mkinitcpio-0.11.1
Comment by Dave Reisner (falconindy) - Saturday, 10 November 2012, 00:41 GMT
Thanks for the bug report, but I wonder why you're even involving the autodetect hook if you don't have any modules....