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#20661 - [mkinitcpio] ignores modprobe failures and reports success

Attached to Project: Arch Linux
Opened by Dieter Plaetinck (Dieter_be) - Sunday, 29 August 2010, 15:39 GMT
Last edited by Dave Reisner (falconindy) - Thursday, 21 July 2011, 17:19 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Thomas Bächler (brain0)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

mkinitcpio 0.6.7-1

[root@dieter-ws-a7n8x-arch ~]# mkinitcpio -k 2.6.35-ARCH -c /etc/mkinitcpio.conf -g /boot/kernel26.img
:: Begin build
ERROR: module 'pata_acpi' not found
ERROR: module 'pata_amd' not found
ERROR: module 'ata_generic' not found
ERROR: module 'scsi_mod' not found
ERROR: module 'sata_sil' not found
:: Parsing hook [base]
:: Parsing hook [udev]
:: Parsing hook [autodetect]
:: Parsing hook [pata]
:: Parsing hook [scsi]
:: Parsing hook [sata]
:: Parsing hook [usbinput]
:: Parsing hook [keymap]
:: Parsing hook [encrypt]
ERROR: module 'dm_crypt' not found
:: Parsing hook [lvm2]
ERROR: module 'dm_mod' not found
ERROR: module 'dm_snapshot' not found
ERROR: module 'dm_mirror' not found
:: Parsing hook [filesystems]
:: Generating image '/boot/kernel26.img'...SUCCESS
[root@dieter-ws-a7n8x-arch ~]# echo $?
0

This happens when the add_module call fails in /lib/initcpio/functions, function parse_hook ().
Obviously the kernel26.img did not successfully generate and exitcode should be >0
I see other calls in parse_hook () like add_binary or add_file which might fail
This task depends upon

Closed by  Dave Reisner (falconindy)
Thursday, 21 July 2011, 17:19 GMT
Reason for closing:  Fixed
Additional comments about closing:  see comments
Comment by Dave Reisner (falconindy) - Sunday, 12 June 2011, 01:16 GMT
Took a stab at this: https://github.com/falconindy/mkinitcpio/commit/9f946a58c7755bc0ae5109ebee4c762a83a85b56

$ ./mkinitcpio -g foo.img -k /boot/vmlinuz26-rampage
==> Starting build: 2.6.39.1-rampage
-> Parsing hook: [base]
-> Parsing hook: [udev]
-> Parsing hook: [autodetect]
-> Parsing hook: [pata]
==> ERROR: module 'sd_mod' not found
-> Parsing hook: [scsi]
==> ERROR: module 'sd_mod' not found
-> Parsing hook: [sata]
==> ERROR: module 'sd_mod' not found
-> Parsing hook: [filesystems]
==> Generating module dependencies
==> Creating gzip initcpio image: foo.img
5593 blocks
==> WARNING: errors were encountered during the build. The image may not be complete.
==> Image generation successful
$ echo $?
1
Comment by Dave Reisner (falconindy) - Saturday, 25 June 2011, 17:55 GMT

Loading...