2019-03-07 20:03:53 +03:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= <f.gruenbichler@proxmox.com>
|
2016-10-24 14:48:46 +03:00
|
|
|
Date: Mon, 24 Oct 2016 13:47:06 +0200
|
2019-03-07 20:03:53 +03:00
|
|
|
Subject: [PATCH] import with -d /dev/disk/by-id in scan service
|
2017-02-06 14:34:48 +03:00
|
|
|
MIME-Version: 1.0
|
2019-03-07 20:03:53 +03:00
|
|
|
Content-Type: text/plain; charset=UTF-8
|
2017-02-06 14:34:48 +03:00
|
|
|
Content-Transfer-Encoding: 8bit
|
2016-10-24 14:48:46 +03:00
|
|
|
|
2017-02-06 14:34:48 +03:00
|
|
|
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
|
2018-10-30 13:14:25 +03:00
|
|
|
Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
|
2019-09-28 09:12:00 +03:00
|
|
|
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
|
2016-10-24 14:48:46 +03:00
|
|
|
---
|
|
|
|
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
|
2021-02-12 20:28:31 +03:00
|
|
|
index f0317e23e..9a5e9cb17 100644
|
2016-10-24 14:48:46 +03:00
|
|
|
--- a/etc/systemd/system/zfs-import-scan.service.in
|
|
|
|
+++ b/etc/systemd/system/zfs-import-scan.service.in
|
2020-12-02 22:18:01 +03:00
|
|
|
@@ -13,7 +13,7 @@ ConditionPathIsDirectory=/sys/module/zfs
|
2019-03-07 20:03:53 +03:00
|
|
|
[Service]
|
2016-10-24 14:48:46 +03:00
|
|
|
Type=oneshot
|
|
|
|
RemainAfterExit=yes
|
|
|
|
-ExecStart=@sbindir@/zpool import -aN -o cachefile=none
|
|
|
|
+ExecStart=@sbindir@/zpool import -aN -d /dev/disk/by-id -o cachefile=none
|
|
|
|
|
|
|
|
[Install]
|
2017-12-19 14:47:27 +03:00
|
|
|
WantedBy=zfs-import.target
|