diff --git a/zfs-patches/import-by-disk-id.patch b/zfs-patches/import-by-disk-id.patch new file mode 100644 index 0000000..58c6bbe --- /dev/null +++ b/zfs-patches/import-by-disk-id.patch @@ -0,0 +1,25 @@ +From eb964a8215c04df7dd42f00c66618593db49c672 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= +Date: Mon, 24 Oct 2016 13:47:06 +0200 +Subject: [PATCH] import with -d /dev/disk/by-id in scan service + +--- + etc/systemd/system/zfs-import-scan.service.in | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/etc/systemd/system/zfs-import-scan.service.in b/etc/systemd/system/zfs-import-scan.service.in +index 0105283..665b9c8 100644 +--- a/etc/systemd/system/zfs-import-scan.service.in ++++ b/etc/systemd/system/zfs-import-scan.service.in +@@ -10,7 +10,7 @@ ConditionPathExists=!@sysconfdir@/zfs/zpool.cache + Type=oneshot + RemainAfterExit=yes + ExecStartPre=/sbin/modprobe zfs +-ExecStart=@sbindir@/zpool import -aN -o cachefile=none ++ExecStart=@sbindir@/zpool import -aN -d /dev/disk/by-id -o cachefile=none + + [Install] + WantedBy=zfs-mount.service +-- +2.1.4 + diff --git a/zfs-patches/series b/zfs-patches/series index 87faa8d..1727f18 100644 --- a/zfs-patches/series +++ b/zfs-patches/series @@ -1,3 +1,4 @@ fix-control.patch add-zfsutils-preinst-postinst.patch fix-dependencies-for-upgrades.patch +import-by-disk-id.patch