mirror_zfs/etc/systemd/system
Brian Behlendorf d32d25c5c2 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 <behlendorf1@llnl.gov>
Closes #5719
2017-02-08 10:17:29 -08:00
..
.gitignore Add systemd unit files for ZFS startup 2014-02-05 12:25:30 -08:00
50-zfs.preset.in Systemd configuration fixes 2016-05-27 11:54:29 -07:00
Makefile.am Set proper dependency for string replacement targets 2016-08-02 10:28:29 -07:00
zfs-import-cache.service.in Systemd configuration fixes 2016-05-27 11:54:29 -07:00
zfs-import-scan.service.in Systemd configuration fixes 2016-05-27 11:54:29 -07:00
zfs-mount.service.in Fix zfs-mount.service failure on boot 2017-02-08 10:17:29 -08:00
zfs-share.service.in Fix zfs-share systemd unit file 2017-01-13 13:24:17 -08:00
zfs-zed.service.in Systemd configuration fixes 2016-05-27 11:54:29 -07:00
zfs.target.in Systemd configuration fixes 2016-05-27 11:54:29 -07:00