set sudo group earlier to be safe
[automated-distro-installer] / fai / config / distro-install-common / end
index 4e25d97cf4e3b489ff1a3c8b09136611c943017c..b248bd31e7759b17a96c77ae1f33bee83db94c81 100755 (executable)
@@ -80,6 +80,10 @@ echo "fs.inotify.max_user_watches = 50000" >> $f
 # applies it. it would be also be applied after a reboot
 $ROOTCMD sysctl --system
 
+if getent group sudo >/dev/null; then
+  usermod -aG sudo iank
+fi
+
 cat >$target/etc/sudoers.d/ianksudoers <<'EOF'
 Defaults timestamp_timeout=1440
 # used in bashrc