Bug#718632: chroot fails due to incorrect path on Arch Linux

2013-08-04 Thread Cyril Brulebois
Heinrich Schuchardt xypron.g...@gmx.de (2013-08-03):
 The reason is that on Arch Linux /bin is not in the path.

This looks broken?

Mraw,
KiBi.


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#718632: chroot fails due to incorrect path on Arch Linux

2013-08-04 Thread xypron . glpk
 This looks broken?

Why? /bin on Arch Linux is only a symlink to /usr/bin.  No need to be in the 
path.

debootstrap should not make any assumptions about PATH.

Best regards

Heinrich Schuchardt


Am 04.08.13 um 12:36 schrieb Cyril Brulebois

 Heinrich Schuchardt xypron.g...@gmx.de (2013-08-03):
 
  The reason is that on Arch Linux /bin is not in the path.
 
 
 
 This looks broken?
 
 
 
 Mraw,
 
 KiBi.


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#718632: chroot fails due to incorrect path on Arch Linux

2013-08-03 Thread Heinrich Schuchardt

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


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org