]> git.proxmox.com Git - zfsonlinux.git/commitdiff
always load ZFS modules on boot
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Fri, 19 Jan 2018 11:16:42 +0000 (12:16 +0100)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Fri, 19 Jan 2018 11:25:22 +0000 (12:25 +0100)
zfs-patches/0006-always-load-ZFS-module-on-boot.patch [new file with mode: 0644]
zfs-patches/series

diff --git a/zfs-patches/0006-always-load-ZFS-module-on-boot.patch b/zfs-patches/0006-always-load-ZFS-module-on-boot.patch
new file mode 100644 (file)
index 0000000..8ed5779
--- /dev/null
@@ -0,0 +1,30 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= <f.gruenbichler@proxmox.com>
+Date: Fri, 19 Jan 2018 12:13:46 +0100
+Subject: [PATCH] always load ZFS module on boot
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+since zfs-import-scan.service is disabled by default, and
+zfs-import-cache.service only gets started if a cache file exists, this
+is needed for zfs-mount, zfs-share and zfs-zed services in case ZFS is
+not actually used.
+
+Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
+---
+ etc/modules-load.d/zfs.conf.in | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/etc/modules-load.d/zfs.conf.in b/etc/modules-load.d/zfs.conf.in
+index 8b41baa30..59b058c9a 100644
+--- a/etc/modules-load.d/zfs.conf.in
++++ b/etc/modules-load.d/zfs.conf.in
+@@ -1,3 +1,3 @@
+ # Always load kernel modules at boot.  The default behavior is to load the
+ # kernel modules in the zfs-import-*.service or when blkid(8) detects a pool.
+-#zfs
++zfs
+-- 
+2.14.2
+
index 17badd47c6549bfbc41462ef4088671ee6065601..578144f206529d40cab7e1be756aa3aa33df80db 100644 (file)
@@ -3,3 +3,4 @@
 0003-Use-user-namespaces-for-FSETID-policy-check.patch
 0004-Enable-zfs-import.target-in-systemd-preset-6968.patch
 0005-Fix-ARC-hit-rate.patch
+0006-always-load-ZFS-module-on-boot.patch