Bug#718632: chroot fails due to incorrect path on Arch Linux
Package: debootstrap
Version: 1.0.48+deb7u1
Severity: normal
Dear maintainer,
I tried to install a Debian chroot on an armhf Arch Linux system.
/usr/sbin/debootstrap --variant=minbase --arch armhf wheezy
debian-chroot http://ftp.de.debian.org/debian
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
be inherited.
A good idea would be to use chroot -i to clear all environment variables
and to set explicitly those that are needed like PATH.
Best regards
Heinrich Schuchardt
Reply to: