[Bug 164044] Re: Gutsy: cryptsetup fails for encrypted rootfs on slow devices (USB)

Peter ppauly at gmail.com
Tue Dec 2 18:43:13 UTC 2008


It is fixed. They included a sleep-loop in
/usr/share/initramfs-tools/scripts/local-top/cryptroot. They even
include a reference to this ticket. Here's the code that was added:

        # /usr/share/initramfs-tools/scripts/local, as suggested per
        # https://launchpad.net/bugs/164044
        if [ ! -e "$cryptsource" ] || ! /lib/udev/vol_id
"$cryptsource" >/dev/null 2>&1; then
                log_begin_msg "Waiting for encrypted source device..."

                # Default delay is 180s
                if [ -z "${ROOTDELAY}" ]; then
                        slumber=180
                else
                        slumber=${ROOTDELAY}
                fi
                if [ -x /sbin/usplash_write ]; then
                        /sbin/usplash_write "TIMEOUT ${slumber}" || true
                fi

                slumber=$(( ${slumber} * 10 ))
                while [ ! -e "$cryptsource" ] || ! /lib/udev/vol_id
"$cryptsource" >/dev/null 2>&1; do
                        /bin/sleep 0.1
                        slumber=$(( ${slumber} - 1 ))
                        [ ${slumber} -gt 0 ] || break
                done

                if [ ${slumber} -gt 0 ]; then
                        log_end_msg 0
                else
                        log_end_msg 1 || true
                fi
                if [ -x /sbin/usplash_write ]; then
                        /sbin/usplash_write "TIMEOUT 15" || true
                fi
        fi



On Tue, Dec 2, 2008 at 12:41 PM, unggnu <unggnu at googlemail.com> wrote:
> This doesn't seem to be fixed in Intrepid. At least I have the problem that initramfs doesn't find the encrypted root-Device on boot with USB hdd while it works fine on my internal.
> Can anyone confirm this?
>
> --
> Gutsy: cryptsetup fails for encrypted rootfs on slow devices (USB)
> https://bugs.launchpad.net/bugs/164044
> You received this bug notification because you are a direct subscriber
> of a duplicate bug.
>

-- 
Gutsy: cryptsetup fails for encrypted rootfs on slow devices (USB)
https://bugs.launchpad.net/bugs/164044
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs




More information about the universe-bugs mailing list