zfs/etc
Brian Behlendorf f0a4bfbe4d 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-06-09 14:05:15 -07:00
..
init.d zfs-import: Perform verbatim import using cache file 2015-10-13 14:33:49 -07:00
modules-load.d Systemd configuration fixes 2016-09-05 16:07:09 -07:00
systemd Fix zfs-mount.service failure on boot 2017-06-09 14:05:15 -07:00
zfs vdev_id: support per-channel slot mappings 2014-01-17 11:17:54 -08:00
Makefile.am Add systemd unit files for ZFS startup 2014-02-05 12:25:30 -08:00