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