diff options
-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 |