Hi
I found a serious problem in my solution.
The correct way of passing file system path into systemd unit is by
using systemd-escape. So instead ${MOUNTPOINT} there should be
$(systemd-escape "$MOUNTPOINT"):
=====================================================
if [ -n "${KIOSK_FOUND}" ]; then
if [ -d /run/systemd/system ] && [ -x /bin/systemctl ]; then
if [ "$action" = "add" ]; then
systemctl start ltspfs@$(systemd-escape "$MOUNTPOINT").service
else
systemctl stop ltspfs@$(systemd-escape "$MOUNTPOINT").service
fi
else
su - ltspkiosk -c "LTSPFS_NOAUTH=True
/usr/sbin/ltspfsmounter ${MOUNTPOINT} $action"
fi
fi
=====================================================Regards Rolandas Naujikas
signature.asc
Description: OpenPGP digital signature

