echo
log "Setting up /tmp as a tmpfs by a systemd mount unit ..."
echo
+ if [[ ! -d /etc/systemd/system/tmp.mount.d ]] ; then
+ echo "Creating /etc/systemd/system/tmp.mount.d ..."
+ mkdir -pv /etc/systemd/system/tmp.mount.d
+ echo
+ fi
+ echo "Creating /etc/systemd/system/tmp.mount.d/mount_options.conf ..."
+ echo
+ cat <<-EOF >"/etc/systemd/system/tmp.mount.d/mount_options.conf"
+ [Mount]
+ Options=mode=1777,strictatime,nosuid,nodev,size=10%%,nr_inodes=1m
+ EOF
+ echo
+ echo "Content of /etc/systemd/system/tmp.mount.d/mount_options.conf:"
+ cat /etc/systemd/system/tmp.mount.d/mount_options.conf
+ echo
echo "Enabling unit tmp.mount ..."
systemctl enable tmp.mount