- std_arg="-u nfs://faiserver/srv/fai/config"
- root_arg="$my_ip:/srv/fai/nfsroot"
- # fai-setup without -e sets the ip to the local_ip/local_network, eg 192.168.1.3/24
- # I restrict it to one ip as simple but imperfect access control.
+ std_arg="-u nfs://faiserver/srv/fai/config"
+ # nfsv4 wont do rw with overlayfs yet
+ # https://lists.uni-koeln.de/pipermail/linux-fai/2017-March/011641.html
+ root_arg="$my_ip:/srv/fai/nfsroot:vers=3"
+ # fai-setup without -e sets the ip to the local_ip/local_network, eg 192.168.1.3/24
+ # I restrict it to one ip as simple but imperfect access control.
+
+ # we may chattr +i /etc/exports if we dun want it modified
+ # for example, if we made these exports more widely available
+ # while doing multiple installs or a recovery.
+ if [[ -w /etc/exports ]]; then