avoid future errors with overwriting symlnks
[automated-distro-installer] / fai / config / distro-install-common / end
index 6be266ebacfedd9b4e8a61d0b9bd14ece91a0267..390c20487c4c944b4dfd96a81d1b13b313f33eca 100755 (executable)
@@ -62,7 +62,7 @@ $ROOTCMD usermod -a -G traci ian
 
 f=$target/etc/sysctl.d/99-sysctl.conf
 key=fs.inotify.max_user_watches
-if [[ -e $f ]]; then sed -ri "/^\s*$key\s*=/d" $f; fi
+if [[ -e $f ]]; then sed -ri --follow-symlinks "/^\s*$key\s*=/d" $f; fi
 echo "fs.inotify.max_user_watches = 1000000" >> $f
 # applies it. it would be also be applied after a reboot
 $ROOTCMD sysctl --system