Commit 2a9a6ab
committed
Relax insmod spl failures, try to load zfs.ko
Instead of manually loading spl.ko every time, try to load it via
modprobe. Iff that fails, use modinfo to find the path to spl.ko and try
to load it with spl_hostid=0. Since udevd could have already loaded zfs
(and by extension, spl), insmod failures are not hard failures. Warn
that the module couldn't be loaded along with the error text and then
try to load zfs.ko anyway.
This moves all of the on-disk / /sys hostid manipulation to after the
modules have been loaded. This ensures that regardless of how spl was
loaded, /sys/module/spl/parameters/spl_hostid is set to 0 to force
/etc/hostid to take precedence.1 parent f657717 commit 2a9a6ab
File tree
1 file changed
+32
-20
lines changed1 file changed
+32
-20
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
28 | 60 | | |
29 | 61 | | |
30 | 62 | | |
| |||
42 | 74 | | |
43 | 75 | | |
44 | 76 | | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | 77 | | |
66 | 78 | | |
67 | 79 | | |
| |||
0 commit comments