This applies to both initramfs and init.d scripts. (root and home raids with devices on external disks take longer)
sleep 0.1 seconds intervalls are probably ok ** Summary changed: - crypdisk setup does not wait properly for its devices to appear + crypdisk setup does not wait properly for its source devices to appear ** Description changed: 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 + wait a 0.1 seconds done. if timeout has been reached ... - Lets get rid of long sleep workarounds and race conditions. + Lets get rid of failure, long sleep workarounds and race conditions. Alternatively cryptsetup may be handled by udev rules, similar as md and lvm devices are. -- crypdisk setup does not wait properly for its source devices to appear https://bugs.launchpad.net/bugs/251164 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs