From a8713271355c68023ea090eb223682e784c64f93 Mon Sep 17 00:00:00 2001 From: Damjan Georgievski Date: Tue, 27 Jan 2015 20:02:24 +0100 Subject: [PATCH] export a proper debian PATH for the chroot when running in the chroot, it would be expected to have a Debian-ish environment, most important the PATH variable. Otherwise the host PATH would be used which can wrong for Debian, especially if the host is Arch (which doesn't have /bin, /sbin or /usr/sbin). Signed-off-by: Damjan Georgievski --- contrib/mkimage/debootstrap | 1 + 1 file changed, 1 insertion(+) diff --git a/contrib/mkimage/debootstrap b/contrib/mkimage/debootstrap index c7a2b66830..83f17e0c4e 100755 --- a/contrib/mkimage/debootstrap +++ b/contrib/mkimage/debootstrap @@ -189,6 +189,7 @@ fi ( set -x + export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin # make sure we're fully up-to-date chroot "$rootfsDir" bash -c 'apt-get update && apt-get dist-upgrade -y'