Browse code

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 <gdamjan@gmail.com>

Damjan Georgievski authored on 2015/01/28 04:02:24
Showing 1 changed files
... ...
@@ -189,6 +189,7 @@ fi
189 189
 
190 190
 (
191 191
 	set -x
192
+	export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
192 193
 	
193 194
 	# make sure we're fully up-to-date
194 195
 	chroot "$rootfsDir" bash -c 'apt-get update && apt-get dist-upgrade -y'