summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--makechrootpkg.in4
1 files changed, 1 insertions, 3 deletions
diff --git a/makechrootpkg.in b/makechrootpkg.in
index cd9efce..284d444 100644
--- a/makechrootpkg.in
+++ b/makechrootpkg.in
@@ -199,9 +199,7 @@ EOF
# so no global variables
_chrootbuild() {
. /etc/profile
- export HOME=/build
- cd /startdir
- sudo -u builduser makepkg "$@"
+ sudo -iu builduser bash -c 'cd /startdir; makepkg "$@"' -bash "$@"
}
_chrootnamcap() {