I was wondering about lines 121-124 of the setup script (in _logcheck()
function):
if [[ ! -d /root/tmp ]]; then
sed -i 's/noexec,//g' /etc/fstab
mount -o remount /tmp >>"${OUTTO}" 2>&1
fi
- it seems quite overreaching to remove every occurrences of the
noexec
mount option: it is still valid to have it on a separate/home
mount point for example; - more importantly, I don’t understand the logic at play here:
- We check whether
/root/tmp
is a directory; - If it isn’t, we remount the
/tmp
mount point ?!
- We check whether
I really don’t get it. How /tmp
and /root/tmp
are connected? Since we check whether /root/tmp
is a directory, shouldn’t we create it in case it isn’t?
Thanks for the clarification!