-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
zfs-mount.service WorkingDirectory ignored (Not an absolute path) #6429
Comments
https://www.freedesktop.org/software/systemd/man/systemd.exec.html#WorkingDirectory=
|
This may be a systemd bug introduced in systemd/systemd@7b07e99. @LnxGnome which systemd version is your system running? |
systemd-219-30.el7_3.9.x86_64 |
Reproduced on CentOS7, cannot reproduce on Debian8 (systemd-215-17) or Sid (sytemd-234-2). Also the "~" character doesn't seem to be accepted too:
Sorry but this doesn't seem a ZFS bug, maybe it's better to report this to your distro maintainer? |
Looks like that functionality was introduced into systemd @ systemd/systemd@5f5d8ea (Sep 23, 2015), which would make it part of the v227 release of systemd (Oct 7, 2015). CentOS is on v219, so it would not be present. |
@LnxGnome you're right, i had erroneously assumed CentOS had this functionality backported. Debian Jessie comes with systemd v215 but seems to support both "-" and "~". |
Is there a simple proposed for the older versions of systemd. |
Don't set it. "If not set, defaults to the root directory when systemd is running as a system instance..." |
Dropping the "-" is the next most straightforward solution. /sbin should be there. |
By default the mount(8) command, as invoked by 'zfs mount', will try to resolve any path parameter in its canonical form: this could lead to mount failures when the cwd contains a symlink having the same name of the dataset being mounted. Fix this by explicitly disabling mount(8) path canonicalization. Reviewed-by: George Melikov <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: loli10K <[email protected]> Closes #1791 Closes #6429 Closes #6437
By default the mount(8) command, as invoked by 'zfs mount', will try to resolve any path parameter in its canonical form: this could lead to mount failures when the cwd contains a symlink having the same name of the dataset being mounted. Fix this by explicitly disabling mount(8) path canonicalization. Reviewed-by: George Melikov <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: loli10K <[email protected]> Closes #1791 Closes #6429 Closes #6437
By default the mount(8) command, as invoked by 'zfs mount', will try to resolve any path parameter in its canonical form: this could lead to mount failures when the cwd contains a symlink having the same name of the dataset being mounted. Fix this by explicitly disabling mount(8) path canonicalization. Reviewed-by: George Melikov <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: loli10K <[email protected]> Closes openzfs#1791 Closes openzfs#6429 Closes openzfs#6437
System information
Describe the problem you're observing
Seen in journalctl output:
systemd[1]: [/usr/lib/systemd/system/zfs-mount.service:14] Not an absolute path, ignoring: -/sbin/
Describe how to reproduce the problem
Install ZFS on CentOS 7.3 (this system was upgraded from 0.6.5)
other info
man systemd.exec
WorkingDirectory=
Takes an absolute directory path. Sets the working directory for executed processes. If not set, defaults to the root directory when systemd is running as a system instance and the respective user's home directory if run as user.
The text was updated successfully, but these errors were encountered: