confirming, this bug forces me to export PATH in a qemu wrapper script (a script called /bin/installer is executed as init in this case), the code example is:
# write installer script to image cat > $BUILDDIR/installer <<EOF #!/bin/bash set -e
export PATH=/bin:/sbin:/usr/bin:/usr/sbin export LC_ALL=C /debootstrap/debootstrap --second-stage
....
EOF
confirming, this bug forces me to export PATH in a qemu wrapper script (a script called /bin/installer is executed as init in this case), the code example is:
# write installer script to image
cat > $BUILDDIR/installer <<EOF
#!/bin/bash
set -e
export PATH=/bin: /sbin:/ usr/bin: /usr/sbin debootstrap --second-stage
export LC_ALL=C
/debootstrap/
....
EOF