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
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
|
Details
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
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....