]> git.proxmox.com Git - zfsonlinux.git/blob - zfs-patches/import-by-disk-id.patch
import with '-d /dev/disk/by-id' in systemd service
[zfsonlinux.git] / zfs-patches / import-by-disk-id.patch
1 From eb964a8215c04df7dd42f00c66618593db49c672 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= <f.gruenbichler@proxmox.com>
3 Date: Mon, 24 Oct 2016 13:47:06 +0200
4 Subject: [PATCH] import with -d /dev/disk/by-id in scan service
5
6 ---
7 etc/systemd/system/zfs-import-scan.service.in | 2 +-
8 1 file changed, 1 insertion(+), 1 deletion(-)
9
10 diff --git a/etc/systemd/system/zfs-import-scan.service.in b/etc/systemd/system/zfs-import-scan.service.in
11 index 0105283..665b9c8 100644
12 --- a/etc/systemd/system/zfs-import-scan.service.in
13 +++ b/etc/systemd/system/zfs-import-scan.service.in
14 @@ -10,7 +10,7 @@ ConditionPathExists=!@sysconfdir@/zfs/zpool.cache
15 Type=oneshot
16 RemainAfterExit=yes
17 ExecStartPre=/sbin/modprobe zfs
18 -ExecStart=@sbindir@/zpool import -aN -o cachefile=none
19 +ExecStart=@sbindir@/zpool import -aN -d /dev/disk/by-id -o cachefile=none
20
21 [Install]
22 WantedBy=zfs-mount.service
23 --
24 2.1.4
25