cryptsetup races the hotplug system and fails if they are not set up instantly.
cryptsetup scripts in initramfs and /etc/init.d/ should go into a waiting loop (0.5 sec intervals) for their devices (going on quickly when device is available) and timeout after a while.
while timeout not reached, do:
if my device has come up, continue
wait a 0.5 seconds
done.
if timeout has been reached ...
Lets get rid of long sleep workarounds and race conditions.
Alternatively cryptsetup may be handled by udev rules, similar as md and lvm devices are.
Binary package hint: cryptsetup
ubuntu 8.04
md and lvm devices are set up by udev rules.
cryptsetup races the hotplug system and fails if they are not set up instantly.
cryptsetup scripts in initramfs and /etc/init.d/ should go into a waiting loop (0.5 sec intervals) for their devices (going on quickly when device is available) and timeout after a while.
while timeout not reached, do:
if my device has come up, continue
wait a 0.5 seconds
done.
if timeout has been reached ...
Lets get rid of long sleep workarounds and race conditions.
Alternatively cryptsetup may be handled by udev rules, similar as md and lvm devices are.