setup user, pass, ssh, etc
[automated-distro-installer] / fai / config / distro-install-common / end
1 #!/bin/bash -x
2
3 set -eE -o pipefail
4 trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?"' ERR
5
6
7
8
9 # based on unison error, with 8192 from
10 # sysctl -a | grep fs.inotify.max_user_watches
11 #http://stackoverflow.com/questions/535768/what-is-a-reasonable-amount-of-inotify-watches-with-linux
12 echo "fs.inotify.max_user_watches = 1000000" >> $target/etc/sysctl.d/99-sysctl.conf
13 # if we weren't rebooting, you could apply it now with:
14 # sysctl --system
15
16 echo 'ian ALL=(ALL) NOPASSWD: ALL' >> $target/etc/sudoers