[Pkg-cryptsetup-devel] Bug#465763: Bug#465763: Bug#465763: cryptsetup: can't boot from USB device

Jonas Meurer jonas at freesources.org
Sat Feb 16 20:37:26 UTC 2008

On 15/02/2008 Piotr Roszatycki wrote:
> I'm talking exactly about booting from an encrypted usb volume. This
> is implemented as following scenario:
> 1. cryptsetup luksOpen $cryptsource $root
> 2. sleep $rootdelay
> 3. mount $root
> But it doesn't work for USB devices, because cryptsetup is called too
> early. In such case there is missing following step:
> 0. sleep $cryptsourcedelay

If i got it right, your statement is untrue. rootdelay is implemented in
/usr/share/initramfs-tools/scripts/init-premount/udev, which is executed
before any cryptsetup action is done in
/usr/share/initramfs-tools/scripts/local-top/cryptroot. According to the
initramfs-tools manpage, init-premount scripts are executed before
local-top, so sleep $rootdelay (2) is invoked before cryptsetup luksOpen

If rootdelay doesn't work for you, you might raise the value. If you
still object, then please proof that I'm wrong.

> and my patch implements such step. Without this additional delay there
> is no possibility to boot from USB device. The kernel version is no
> matter.

your delay is implemented at the top of local-top/cryptroot, which still
is executed after init-premount/udev, so all you do is implementing yet
another delay at the same place (between start of udev and start of


More information about the Pkg-cryptsetup-devel mailing list