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:
parent
bfd2862bc4
commit
58d0ccc4f8
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue