Description: Fix the path to the zed binary on the systemd unit.
 We install zed into /usr/sbin manually meanwhile the upstream default
 is installing it into /sbin.
 Ubuntu packages also install zed to /usr/sbin, but they ship their own
 zfs-zed unit.
Author: Carlos Alberto Lopez <clopez@igalia.com>
Author: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Author: Chris Dos <chris@chrisdos.com>
Bug-Debian: https://bugs.debian.org/849813
Bug-Debian: https://bugs.debian.org/826994
Forwarded: no
Index: zfs-linux/etc/systemd/system/zfs-zed.service.in
===================================================================
--- zfs-linux.orig/etc/systemd/system/zfs-zed.service.in
+++ zfs-linux/etc/systemd/system/zfs-zed.service.in
@@ -4,7 +4,7 @@ Documentation=man:zed(8)
 ConditionPathIsDirectory=/sys/module/zfs
 
 [Service]
-ExecStart=@sbindir@/zed -F
+ExecStart=/usr/sbin/zed -F
 Restart=always
 
 [Install]
Index: zfs-linux/etc/zfs/zfs-functions.in
===================================================================
--- zfs-linux.orig/etc/zfs/zfs-functions.in
+++ zfs-linux/etc/zfs/zfs-functions.in
@@ -87,7 +87,7 @@ fi
 
 # Paths to what we need
 ZFS="@sbindir@/zfs"
-ZED="@sbindir@/zed"
+ZED="/usr/sbin/zed"
 ZPOOL="@sbindir@/zpool"
 ZPOOL_CACHE="@sysconfdir@/zfs/zpool.cache"
 
