diff options
author | Brian Behlendorf <[email protected]> | 2017-02-08 10:17:29 -0800 |
---|---|---|
committer | GitHub <[email protected]> | 2017-02-08 10:17:29 -0800 |
commit | d32d25c5c26c8d1e254bc0fcb8a8ae059e95cebc (patch) | |
tree | bdc6e701ae4fb456418bc488819515895b5ee480 /tests/zfs-tests/include | |
parent | 97dde9211d95bbd219b3fac38ff60615e80c0ac1 (diff) |
Fix zfs-mount.service failure on boot
The mount(8) command will helpfully try to resolve any device name
which is passed in. It does this by applying some simple heuristics
before passing it along to the registered mount helper.
Normally this fine. However, one of these heuristics is to prepend
the current working directory to the passed device name. If that
resulting directory name exists mount(8) will perform the mount(2)
system call and never invoke the helper utility.
Since the cwd for systemd when running as the system instance is
the root directory the default mount points created by zfs(8) can
cause a mount failure.
This change avoids the issue by explicitly setting the cwd to
a different path when performing the mount.
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #5719
Diffstat (limited to 'tests/zfs-tests/include')
0 files changed, 0 insertions, 0 deletions