Bug#718632: chroot fails due to incorrect path on Arch Linux
I tried to install a Debian chroot on an armhf Arch Linux system.
/usr/sbin/debootstrap --variant=minbase --arch armhf wheezy
failed when reaching
chroot /home/user/temp/debian-chroot mount -t proc proc /proc
because command mount was not found.
The reason is that on Arch Linux /bin is not in the path. And chroot
inherits this path.
When calling chroot the variable PATH should be set explicitly and not
A good idea would be to use chroot -i to clear all environment variables
and to set explicitly those that are needed like PATH.