[Pkg-cryptsetup-devel] Bug#465763: Bug#465763: Bug#465763: Bug#465763: cryptsetup: can't boot from USB device
Jonas Meurer
jonas at freesources.org
Mon Feb 18 17:38:11 UTC 2008
On 17/02/2008 Piotr Roszatycki wrote:
> 2008/2/17, Jonas Meurer <jonas at freesources.org>:
> > > Also I suggest to read and analyze the
> > > /usr/share/initramfs-tools/scripts/local file. You can see there what
> > > and in what order is called at boot time.
> >
> > You're correct, that $ROOTDELAY is used in scripts/local, but it's also
> > used in scripts/init-premount/udev, and this is invoked _before_
> > scripts/local-top/cryptsetup.
> >
> > Please read /usr/share/initramfs-tools/scripts/init-premount/udev
>
> Yes, indeed this delay is implemented in udev package, at least in
> sid. Even that, I think this is not the best option because it is hard
> to guess how much time the USB device starts up. I think the safe
> option is to check if the proper device will appear as /dev/sd? entry.
Piotr, what do you think about adding the check to the udev script
instead of bloating cryptroot script with yet another delay?
David pointed me to the fact that the proper fix would rather be to fix
the udev initramfs script, not to add yet another delay option to
cryptsetup initramfs script.
The udev ROOTDELAY implementation already is at the right place, it just
needs to be extended to actually check for existence of the device.
greetings,
jonas
More information about the Pkg-cryptsetup-devel
mailing list