diff options
author | Levente Polyak <anthraxx@archlinux.org> | 2015-12-06 17:38:01 +0100 |
---|---|---|
committer | Evangelos Foutras <evangelos@foutrelis.com> | 2016-01-09 10:59:44 +0100 |
commit | f1effdf989edc616f4ee38808fc420e7f3f2f45b (patch) | |
tree | 4b2e9b4d1743a45cc1d2d1ad1e303318acdd78ba /makechrootpkg.in | |
parent | 38957783a2bf3da42de6c0be37caf8a7ba763d84 (diff) | |
download | devtools-f1effdf989edc616f4ee38808fc420e7f3f2f45b.tar.gz devtools-f1effdf989edc616f4ee38808fc420e7f3f2f45b.tar.xz |
makechrootpkg: use /build as HOME for the builduser
This way the HOME dir is writable and no ugly hacks are required
in the PKGBUILD if $HOME is accessed (f.e. maven, gradle and also
some python tests etc.)
Diffstat (limited to 'makechrootpkg.in')
-rw-r--r-- | makechrootpkg.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/makechrootpkg.in b/makechrootpkg.in index 3c8a20f..309b495 100644 --- a/makechrootpkg.in +++ b/makechrootpkg.in @@ -189,7 +189,7 @@ prepare_chroot() { # We can't use useradd without chrooting, otherwise it invokes PAM modules # which we might not be able to load (i.e. when building i686 packages on # an x86_64 host). - printf 'builduser:x:%d:100:builduser:/:/usr/bin/nologin\n' "$builduser_uid" >>"$copydir/etc/passwd" + printf 'builduser:x:%d:100:builduser:/build:/usr/bin/nologin\n' "$builduser_uid" >>"$copydir/etc/passwd" chown -R "$builduser_uid" "$copydir"/{build,pkgdest,srcpkgdest,logdest,srcdest,startdir} if [[ -n $MAKEFLAGS ]]; then |