From f1effdf989edc616f4ee38808fc420e7f3f2f45b Mon Sep 17 00:00:00 2001 From: Levente Polyak Date: Sun, 6 Dec 2015 16:38:01 +0000 Subject: 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.) --- makechrootpkg.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'makechrootpkg.in') 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 -- cgit v1.2.3 From c5128dc45ccb13a4a99a8ffe7aa6bdf84cc89970 Mon Sep 17 00:00:00 2001 From: Evangelos Foutras Date: Sat, 9 Jan 2016 11:53:37 +0200 Subject: makechrootpkg: set builduser's shell to /bin/bash Having it set to nologin breaks a couple of tests in Git and Python. --- makechrootpkg.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'makechrootpkg.in') diff --git a/makechrootpkg.in b/makechrootpkg.in index 309b495..9cb25fc 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:/build:/usr/bin/nologin\n' "$builduser_uid" >>"$copydir/etc/passwd" + printf 'builduser:x:%d:100:builduser:/build:/bin/bash\n' "$builduser_uid" >>"$copydir/etc/passwd" chown -R "$builduser_uid" "$copydir"/{build,pkgdest,srcpkgdest,logdest,srcdest,startdir} if [[ -n $MAKEFLAGS ]]; then -- cgit v1.2.3