summaryrefslogtreecommitdiff
path: root/makechrootpkg.in
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2011-12-03 16:26:42 +1000
committerPierre Schmitz <pierre@archlinux.de>2011-12-04 18:04:47 +0100
commit58d0ccc4f85c428e90f416a80359f6c0a3f91e47 (patch)
treea288399dba7ebe36468b24be6abfe7c43d57e4bb /makechrootpkg.in
parentbfd2862bc45179c7e1ae8da489ca864900bda74c (diff)
downloaddevtools-58d0ccc4f85c428e90f416a80359f6c0a3f91e47.tar.xz
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>
Diffstat (limited to 'makechrootpkg.in')
-rw-r--r--makechrootpkg.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/makechrootpkg.in b/makechrootpkg.in
index 8a4b143..c5d57e5 100644
--- a/makechrootpkg.in
+++ b/makechrootpkg.in
@@ -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