[arch-projects] [devtools] [PATCH 2/2] let sudo pass DISPLAY and GPG_TTY to builduser
Patrick Burroughs (Celti)
celti at celti.name
Sun May 1 17:48:00 UTC 2016
This requires the previous patch to enable -e/--setenv to work, and
allows with the appropriate flags to sign packages within the chroot.
---
makechrootpkg.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/makechrootpkg.in b/makechrootpkg.in
index 1ef89a4..5acc6d4 100644
--- a/makechrootpkg.in
+++ b/makechrootpkg.in
@@ -206,7 +206,7 @@ prepare_chroot() {
if [[ ! -f $copydir/etc/sudoers.d/builduser-pacman ]]; then
cat > "$copydir/etc/sudoers.d/builduser-pacman" <<EOF
-Defaults env_keep += "HOME"
+Defaults env_keep += "HOME DISPLAY GPG_TTY"
builduser ALL = NOPASSWD: /usr/bin/pacman
EOF
chmod 440 "$copydir/etc/sudoers.d/builduser-pacman"
--
2.8.2
More information about the arch-projects
mailing list