File: 4510-silently-ignore-modprobe-failure.patch

package info (click to toggle)
zfs-linux 2.0.3-9%2Bdeb11u1
  • links: PTS, VCS
  • area: contrib
  • in suites: bullseye
  • size: 54,364 kB
  • sloc: ansic: 365,663; sh: 57,417; asm: 8,996; python: 8,652; makefile: 5,521; perl: 770; sed: 41; awk: 5
file content (33 lines) | stat: -rw-r--r-- 1,184 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
Description: Don't fail if zfs modules can't load on package installation
  Ideally, modprobe should be attempted but not fatal (LP: #1880421)
Author: Colin Ian King <colin.king@canonical.com>
Origin: ubuntu
Forwarded: no
Last-Update: 2020-06-04

Index: zfs-linux-2.0.1/etc/systemd/system/zfs-load-module.service.in
===================================================================
--- zfs-linux-2.0.1.orig/etc/systemd/system/zfs-load-module.service.in
+++ zfs-linux-2.0.1/etc/systemd/system/zfs-load-module.service.in
@@ -10,7 +10,7 @@ After=systemd-remount-fs.service
 [Service]
 Type=oneshot
 RemainAfterExit=yes
-ExecStart=/sbin/modprobe zfs
+ExecStart=-/sbin/modprobe zfs
 
 [Install]
 WantedBy=zfs-mount.service
Index: zfs-linux-2.0.1/etc/systemd/system/zfs-share.service.in
===================================================================
--- zfs-linux-2.0.1.orig/etc/systemd/system/zfs-share.service.in
+++ zfs-linux-2.0.1/etc/systemd/system/zfs-share.service.in
@@ -13,7 +13,7 @@ ConditionPathIsDirectory=/sys/module/zfs
 [Service]
 Type=oneshot
 RemainAfterExit=yes
-ExecStart=@sbindir@/zfs share -a
+ExecStart=-@sbindir@/zfs share -a
 
 [Install]
 WantedBy=zfs.target