diff --git a/etc/systemd/system/zfs-mount.service.in b/etc/systemd/system/zfs-mount.service.in index 36dc3be507..0664fd9e76 100644 --- a/etc/systemd/system/zfs-mount.service.in +++ b/etc/systemd/system/zfs-mount.service.in @@ -11,7 +11,6 @@ Before=local-fs.target Type=oneshot RemainAfterExit=yes ExecStart=@sbindir@/zfs mount -a -WorkingDirectory=-/sbin/ [Install] WantedBy=zfs-share.service diff --git a/lib/libzfs/libzfs_mount.c b/lib/libzfs/libzfs_mount.c index a662786271..dd1617d64d 100644 --- a/lib/libzfs/libzfs_mount.c +++ b/lib/libzfs/libzfs_mount.c @@ -344,8 +344,9 @@ zfs_is_mountable(zfs_handle_t *zhp, char *buf, size_t buflen, static int do_mount(const char *src, const char *mntpt, char *opts) { - char *argv[8] = { + char *argv[9] = { "/bin/mount", + "--no-canonicalize", "-t", MNTTYPE_ZFS, "-o", opts, (char *)src,