makechrootpkg: fix potential non-writable directories of builduser in /build

This removes the preservation of HOME being /build just for the pacman
sudo call. Former leads to unbuildable packages when an to be installed
dependency writes something into the HOME dir (f.e. .config). The
resulting directories won't be writable by the builduser as they are
owned by root:root and ultimately will fail to build anything that
requires so.
This commit is contained in:
Levente Polyak 2017-02-22 13:16:03 +01:00 committed by Jan Alexander Steffens (heftig)
parent 15f16162fb
commit ff48401963
No known key found for this signature in database
GPG Key ID: A5E9288C4FA415FA
1 changed files with 0 additions and 1 deletions

View File

@ -173,7 +173,6 @@ prepare_chroot() {
done
cat > "$copydir/etc/sudoers.d/builduser-pacman" <<EOF
Defaults env_keep += "HOME"
builduser ALL = NOPASSWD: /usr/bin/pacman
EOF
chmod 440 "$copydir/etc/sudoers.d/builduser-pacman"