Bug#405301: [Pkg-cryptsetup-devel] Bug#405301: bug 405301 - cryptoroot on LVM needs source dev /dev/mapper/* in crypttab

David Härdeman david at hardeman.nu
Mon Jan 8 23:45:47 CET 2007


On Mon, Jan 08, 2007 at 09:35:17PM +0100, Marcus Better wrote:
>> Now, if it is handed a random device name such as /dev/X/Y, there is no
>> way to tell what steps are necessary to create said node.
>
>Understood.
>
>> I'm inclined to simply document that the LVM symlinks are not supported
>> as device nodes.
>
>An easy solutions might be to follow symlinks when generating the initramfs. I 
>just noticed that /dev/VG/LV is a symlink to /dev/mapper/VG-LV.

That's true...on the other hand, that will break other setups, such as 
when /dev/disk/by-*/something is used (which is valid). Checking the 
target of symlinks and seeing if they're inside /dev/mapper/ would 
probably be necessary.

>Alternatively, one could let cryptdisks warn that symlinks are used, so that 
>cryptdisks and the initramfs scripts will behave more similarly and not 
>surprise the user.

Mmm...I'll take a look at it...perhaps I think I'll add both the symlink 
target check and the warning message...

-- 
David Härdeman




More information about the Pkg-cryptsetup-devel mailing list