makearchroot: source /etc/profile before building

This ensures the PATH used when building is the default path and
not the value set by the user calling makechrootpkg.

Signed-off-by: Allan McRae <allan@archlinux.org>
Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
This commit is contained in:
Allan McRae 2011-12-03 16:26:42 +10:00 committed by Pierre Schmitz
parent bfd2862bc4
commit 58d0ccc4f8
1 changed files with 1 additions and 0 deletions

View File

@ -264,6 +264,7 @@ echo 'LANG=C' > "$copydir/etc/locale.conf"
# working copy
cat >"$copydir/chrootbuild" <<EOF
#!/bin/bash
. /etc/profile
export LANG=C
export HOME=/build