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

Piotr Roszatycki dexter at debian.org
Sun Feb 17 11:33:27 UTC 2008


2008/2/16, Jonas Meurer <jonas at freesources.org>:
> > 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

You're wrong, because the local-premount is called *after* local-top actions.
See:

$ grep Running /usr/share/initramfs-tools/scripts/locals
        [ "$quiet" != "y" ] && log_begin_msg "Running /scripts/local-top"
        [ "$quiet" != "y" ] && log_begin_msg "Running /scripts/local-premount"
        [ "$quiet" != "y" ] && log_begin_msg "Running /scripts/local-bottom"

The cryptsetup is called in local-top, the rootdelay is called after
local-top and before local-premount. It is too late for cryptsetup!

-- 
 .''`.    Piotr Roszatycki
: :' :    mailto:Piotr.Roszatycki at gmail.com
`. `'     mailto:dexter at debian.org
  `-





More information about the Pkg-cryptsetup-devel mailing list