diff options
author | P. J. McDermott <pj@pehjota.net> | 2018-06-21 18:23:30 (EDT) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2018-06-25 16:29:08 (EDT) |
commit | 1293a2cd242b76cbe2982c6d52ceff341113684a (patch) | |
tree | 175b84cbe19d7c9e332dd97e043cc2fd6c2c2f7d | |
parent | 09d2114b249afffad4363ca59a13df9c1cb715a4 (diff) | |
download | pc-inst-1293a2cd242b76cbe2982c6d52ceff341113684a.zip pc-inst-1293a2cd242b76cbe2982c6d52ceff341113684a.tar.gz pc-inst-1293a2cd242b76cbe2982c6d52ceff341113684a.tar.bz2 |
logi1: Keep env vars for pbuilder
-rw-r--r-- | hosts/logi1/postinst | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/hosts/logi1/postinst b/hosts/logi1/postinst index bf4159e..484f8b7 100644 --- a/hosts/logi1/postinst +++ b/hosts/logi1/postinst @@ -115,7 +115,13 @@ in_target adduser pj wireshark || return 1 in_target adduser pj sbuild || return 1 # Allow sudo without password. -printf '%%sudo\tALL=(ALL) NOPASSWD:ALL\n' >"${target}/etc/sudoers.d/sudo" +cat >"${target}/etc/sudoers.d/sudo" <<-EOF + %sudo ALL=(ALL) NOPASSWD:ALL + + Cmnd_Alias PBUILDER = /usr/sbin/pbuilder, /usr/bin/pdebuild, /usr/bin/debuild-pbuilder, /usr/sbin/cowbuilder + Defaults!PBUILDER env_keep+="DIST ARCH BUILD* TMPFS SIGNED HOME" + %sudo ALL=(ALL) SETENV: NOPASSWD: PBUILDER + EOF # Add udev rule for USBtinyISP(-compatible) programmers. cat >"${target}/etc/udev/rules.d/10-usbtinyisp.rules" <<-EOF |