FS#15237 - [mkinitcpio] 0.5.25-1 some script tries to use my root partition as LUKS which is not

Attached to Project: Arch Linux
Opened by solsTiCe (zebul666) - Tuesday, 23 June 2009, 20:14 GMT
Last edited by Jan de Groot (JGC) - Sunday, 28 June 2009, 10:09 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Thomas Bächler (brain0)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


i just booted into the new 2.6.30 kernel and noted a new and strange error message.

:: Loading initramfs
Waiting 10 seconds for device /dev/disk/by-uuid/46209430-52e9-4d73-accd-2775bc078852 ...
ERROR: Failed to open encryption mapping: The device /dev/disk/by-uuid/46209430-52e9-4d73-accd-2775bc078852 is not a LUKS volume and the crypto= parameter was not specified.

Waiting 10 seconds for device /dev/disk/by-uuid/46209430-52e9-4d73-accd-2775bc078852 ...

in fact /dev/disk/by-uuid/46209430-52e9-4d73-accd-2775bc078852 is NOT my LUKS partition but my root partition (/dev/sda5) which is not a LUKS one !
so i suspect some bug in the new mkinitcpio.
the bug being:
it tries to use my root partition has a LUKS one whereas it is not ! just because i have a LUKS partition.

it was working with the 2.6.29 kernel (but i did re-run mkinitcpio when i upgraded to 0.5.25 mkinitcpio)

by the way it seems to cause no harm. my LUKS partion is mounted as it should and my root partition too ;-)
This task depends upon

Closed by  Jan de Groot (JGC)
Sunday, 28 June 2009, 10:09 GMT
Reason for closing:  Not a bug
Comment by Thomas Bächler (brain0) - Tuesday, 23 June 2009, 22:28 GMT
It does exactly the same as it did before, just a warning message was added. You seem to have the encrypt hook in your mkinitcpio.conf but don't need/use it, simply disable it.
Comment by solsTiCe (zebul666) - Saturday, 27 June 2009, 15:25 GMT
  • Field changed: Percent Complete (100% → 0%)
your answer states clearly you have not understood what i report. please re-read the bug report.
i have a LUKS partition (not the root one). if i disable the encrypt hook, how will it ever be mounted ? and my encrypted swap ?
the error is misleading and should not be displayed.
Comment by Paul Mattal (paul) - Saturday, 27 June 2009, 15:26 GMT
I don't think the encrypt hook is needed to mount a LUKS partition other than for the root partition. So if you enable the encrypt hook, it tries to mount the root partition as LUKS.

Am I right? If so, then it's not a bug. I'm not sure on this because I don't currently use LUKS or the encrypt hook.
Comment by solsTiCe (zebul666) - Sunday, 28 June 2009, 05:03 GMT
yes. sorry to ask to reopen the bug.
i don't need encrypt hook. it works fine without it.