[pkg-cryptsetup-devel] Bug#535801: Bug#535801: cryptsetup: root-device is changed wrongly

Jonas Meurer jonas at freesources.org
Sun Jul 5 13:29:29 UTC 2009


Hello,

On 05/07/2009 johfel at gmx.de wrote:
> I have the following config:
>   target=sda1Crypt,source=/dev/sda1,key=none
> 
> target=sda2Crypt,source=/dev/sda2,key=sda1Crypt,keyscript=/lib/cryptsetup/scripts/decrypt_derived
> 
> sda1Crypt is root filesystem, sda2Crypt is my swap partition.
> 
> In the new version 2:1.0.7~rc1-1 the root device is changed to
> /dev/mapper/sda2Crypt, so the system can't mount its root partition and
> fails to boot.
> 
> I think the recent fix for lilo (I use grub):
>   echo "ROOT=$NEWROOT" >> /conf/param.conf
> in scripts/local-top/cryptroot is responsible for this behavior.

I'm unable to reproduce the issue on a system with hdb1 as cryptroot and
hda2 as encrypted swap, using the decrypt_derived keyscript just like
you.

please re-generate your initramfs with
sh -x mkinitramfs -o /tmp/initramfs-$(uname -r) 2> /tmp/log

and send /tmp/log to the bugreport.

thanks,
 jonas





More information about the pkg-cryptsetup-devel mailing list