On 17/02/2008 Piotr Roszatycki wrote: > 2008/2/16, Jonas Meurer <[EMAIL PROTECTED]>: > > > 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:
udev is not run in *LOCAL*-premount, but in *INIT*-premount, and the init-{top,premount} scripts are invoked before local-* or nfs-* scripts: $ grep -e "/scripts/" /usr/share/initramfs-tools/init . /scripts/functions run_scripts /scripts/init-top [ "$quiet" != "y" ] && log_begin_msg "Running /scripts/init-premount" run_scripts /scripts/init-premount . /scripts/${BOOT} [ "$quiet" != "y" ] && log_begin_msg "Running /scripts/init-bottom" run_scripts /scripts/init-bottom ${BOOT} is either "local" or "nfs". Do you still object? > $ 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! why do you think that rootdelay is called between local-top and local-premount? do you have any evidence? greetings, jonas -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]