Bug 87602 - systemd-user not working with .mount's
Summary: systemd-user not working with .mount's
Status: RESOLVED FIXED
Alias: None
Product: systemd
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: All All
: medium normal
Assignee: systemd-bugs
QA Contact: systemd-bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-22 17:43 UTC by Alfred Krohmer
Modified: 2015-01-01 19:47 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

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.