Comment 1 for bug 556304

Revision history for this message
sam tygier (samtygier) wrote :

i think the following code is responsible:

if [ ! $(which qemu-arm-static) ];then
        SECOND_STAGE="/debootstrap/debootstrap --second-stage"
    else
        mkdir -p $MOUNTPOINT/usr/bin/
        cp $(which qemu-arm-static) $MOUNTPOINT/usr/bin/
        chroot $MOUNTPOINT debootstrap/debootstrap --second-stage >$DBFIFO 2>&1 &
        SECOND_STAGE=""
fi

if i install qemu-kvm-extras-static to have qemu-arm-static, then i can get past the hang. the difference between the 2 paths is that only the second sets something to feed into the FIFO. after the if statement is a loop to read from the FIFO. if the fist path is followed then the read loop waits for ever.

the simplest fix is to move the read loop inside the else block. i shall attach a patch

i am not sure why the FIFO is used instead of tee.