[pkg-cryptsetup-devel] Bug#546610: cryptsetup: root= cmdline call is not honoured by initrd in crypto+lvm (Was initramfs-tools: ...)

Agustin Martin agmartin at debian.org
Tue Sep 7 15:04:38 UTC 2010


On Tue, Sep 07, 2010 at 04:50:05PM +0200, Agustin Martin wrote:
> > > On Thu, Sep 24, 2009 at 09:29:58PM +0200, Jonas Meurer wrote:
> > > > first, thanks for the bugreport. the reason for change of bahaviour is a
> > > > line in /usr/share/initramfs/scripts/local-top/cryptroot that sets $ROOT
> > > > to $NEWROOT in /conf/params.conf in the initramfs:
> > > > 
> > > > 302:			if [ "$cryptrootdev" = "yes" ]; then
> > > > 303:				# required for lilo to find the root device
> > > > 304:				echo "ROOT=$NEWROOT" >> /conf/param.conf
> > > > 305:			fi
> > > > 
> > > > commenting out these lines and regenerating the initramfs
> > > > (update-initramfs -u) afterwards should fix it. could you verify that?
> > > 
> > > Working well with that change. Thanks for debugging.
> > > 
> > > > unfortunately these lines are required in order to support setups with
> > > > cryptroot on lvm and lilo as bootloader. thus i don't know what to do
> > > > about that bug yet. will have to do further investigation and testing
> > > > with lilo as bootloader first.

> Patch with my current changes is attached. Seems to work in a basic
> lilo-booted box and in my usual grub-booted box. Not tested in syslinux.

Forgot to mention that I did the lilo tests in a box with cryptroot on lvm 
and lilo as bootloader, with a single bootable partition inside that lvm.

-- 
Agustin





More information about the pkg-cryptsetup-devel mailing list