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#14131 - [cryptsetup] mkinitcpio reports an error when dm_crypt is not compiled as a module

Attached to Project: Arch Linux
Opened by Peter Simons (peti) - Tuesday, 07 April 2009, 14:07 GMT
Last edited by Thomas Bächler (brain0) - Sunday, 07 June 2009, 13:23 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 Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Mkinitcpio reports an error while generating an "encrypt"-enabled init ram disk for a kernel that has dm_crypt compiled in. I guess the script tries to modprobe dm_crypt and fails. The error is not fatal, i.e. mkinitcpio does generate a working ram disk anyway, but it would feel nicer if it wouldn't report that error to begin with.
This task depends upon

Closed by  Thomas Bächler (brain0)
Sunday, 07 June 2009, 13:23 GMT
Reason for closing:  Won't fix
Additional comments about closing:  This might indeed be an error, if dm_mod is missing completely. If you know you compiled it in you can ignore it, but if you forgot to compile it at all, this will warn you in time.
Comment by Thomas Bächler (brain0) - Wednesday, 08 April 2009, 08:08 GMT
I would guess a 2>/dev/null on the modprobe line would be enough here.
Comment by Peter Simons (peti) - Tuesday, 14 April 2009, 12:47 GMT
Here is the exact output I get when running the tool:

| [root@overkill ~]# mkinitcpio -p overkill
| ==> Building image "default"
| ==> Running command: /sbin/mkinitcpio -k 2.6.29 -c /etc/mkinitcpio.d/overkill.conf -g /boot/linux-2.6.29-initrd
| :: Begin dry run
| :: Parsing hook [base]
| :: Parsing hook [udev]
| :: Parsing hook [autodetect]
| :: Parsing hook [pata]
| :: Parsing hook [scsi]
| :: Parsing hook [sata]
| :: Parsing hook [usb]
| :: Parsing hook [usbinput]
| :: Parsing hook [keymap]
| :: Parsing hook [encrypt]
| ERROR: module 'dm[-_]crypt' not found
| :: Parsing hook [filesystems]
| :: Generating image '/boot/linux-2.6.29-initrd'...SUCCESS
| ==> SUCCESS
Comment by Thomas Bächler (brain0) - Tuesday, 14 April 2009, 13:19 GMT
I don't think we want any special handling here, maybe we can change the message from ERROR to WARNING or so.

Loading...