[Pkg-cryptsetup-devel] Bug#465763: Bug#465763: Bug#465763: Bug#465763: cryptsetup: can't boot from USB device
David Härdeman
david at hardeman.nu
Sat Feb 16 21:58:03 UTC 2008
On Sat, Feb 16, 2008 at 09:37:26PM +0100, Jonas Meurer wrote:
>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
>(1).
>
>If rootdelay doesn't work for you, you might raise the value. If you
>still object, then please proof that I'm wrong.
I agree...the initramfs-tools check for rootdelay should see that the
root device doesn't exist and wait (since root will be set to something
like /dev/mapper/blablabla)...so the sleep should already be there
unless I'm mistaken.
--
David Härdeman
More information about the Pkg-cryptsetup-devel
mailing list