Bug 87602

Summary: systemd-user not working with .mount's
Product: systemd Reporter: Alfred Krohmer <devkid>
Component: generalAssignee: systemd-bugs
Status: RESOLVED FIXED QA Contact: systemd-bugs
Severity: normal    
Priority: medium CC: devkid
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Alfred Krohmer 2014-12-22 17:43:46 UTC
systemctl --user start <unit>.mount won't work because it uses the -n (--no-mtab) for mount, which is not permitted for non-root users.

Example:

$ cat ~/.config/systemd/user/home-devkid-Mounts-eeets.mount
[Mount]
What=sshfs#eeets:
Where=/home/devkid/Mounts/eeets
Type=fuse
Options=idmap=user,workaround=rename
$ systemctl --user start home-devkid-Mounts-eeets.mount
Job for home-devkid-Mounts-eeets.mount failed. See "systemctl status home-devkid-Mounts-eeets.mount" and "journalctl -xe" for details.
$ journalctl -xe
Dez 22 18:41:32 desktop systemd[1887]: Mounting /home/devkid/Mounts/eeets...
-- Subject: Unit UNIT has begun with start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit UNIT has begun starting up.
Dez 22 18:41:32 desktop systemd[1887]: home-devkid-Mounts-eeets.mount mount process exited, code=exited status=1
Dez 22 18:41:32 desktop systemd[1887]: Failed to mount /home/devkid/Mounts/eeets.
-- Subject: Unit UNIT has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit UNIT has failed.
-- 
-- The result is failed.
Dez 22 18:41:32 desktop systemd[1887]: Unit home-devkid-Mounts-eeets.mount entered failed state.
Dez 22 18:41:32 desktop mount[5648]: mount: nur »root« kann die Option »--no-mtab« verwenden
Comment 1 Zbigniew Jedrzejewski-Szmek 2015-01-01 19:47:10 UTC
This should be fixed in https://cgit.freedesktop.org/systemd/systemd/commit/?id=e86b376.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.