diff options
Diffstat (limited to 'hosts/alsvid3/postinst')
-rw-r--r-- | hosts/alsvid3/postinst | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/hosts/alsvid3/postinst b/hosts/alsvid3/postinst index 564e6e8..268256a 100644 --- a/hosts/alsvid3/postinst +++ b/hosts/alsvid3/postinst @@ -58,6 +58,13 @@ in_target adduser pj scanner || return 1 in_target adduser pj wireshark || return 1 in_target adduser pj sbuild || return 1 +# Keep env vars for pbuilder. +cat >"${target}/etc/sudoers.d/pbuilder" <<-EOF + 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 SUBSYSTEM=="usb", ATTR{idVendor}=="1781", ATTR{idProduct}=="0c9f", MODE="0660", GROUP="adm" @@ -152,8 +159,8 @@ in_target sudo -u pj vcsh clone ssh://git@git.pehjota.net/dotfiles/mr.git mr \ || return 1 in_target sudo -u pj mr update || return 1 in_target sudo -u pj /home/pj/bin/dfen claws-mail clipit fluxbox geeqie gimp \ - gpicview gtk keychain kicad midori mpd mpv redshift xdg-user-dirs \ - xfce4-terminal xscreensaver + gpicview gtk keychain kicad midori mpd mpv pbuilder redshift trisquel \ + xdg-user-dirs xfce4-terminal xscreensaver # Create XDG directories. sed 's/#.*$//; /^$/d;' "${target}/home/pj/.config/user-dirs.dirs" | \ |