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.
i think the following code is responsible:
if [ ! $(which qemu-arm-static) ];then
SECOND_ STAGE=" /debootstrap/ debootstrap --second-stage" usr/bin/ usr/bin/ debootstrap --second-stage >$DBFIFO 2>&1 &
SECOND_ STAGE=" "
else
mkdir -p $MOUNTPOINT/
cp $(which qemu-arm-static) $MOUNTPOINT/
chroot $MOUNTPOINT debootstrap/
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.