1 |
Signed-off-by: Michał Górny <mgorny@g.o> |
2 |
--- |
3 |
sys-fs/zfs-kmod/zfs-kmod-0.8.6.ebuild | 6 +++++- |
4 |
sys-fs/zfs-kmod/zfs-kmod-2.0.1.ebuild | 6 +++++- |
5 |
sys-fs/zfs-kmod/zfs-kmod-9999.ebuild | 6 +++++- |
6 |
3 files changed, 15 insertions(+), 3 deletions(-) |
7 |
|
8 |
diff --git a/sys-fs/zfs-kmod/zfs-kmod-0.8.6.ebuild b/sys-fs/zfs-kmod/zfs-kmod-0.8.6.ebuild |
9 |
index 9067f3662366..2e05194236ed 100644 |
10 |
--- a/sys-fs/zfs-kmod/zfs-kmod-0.8.6.ebuild |
11 |
+++ b/sys-fs/zfs-kmod/zfs-kmod-0.8.6.ebuild |
12 |
@@ -3,7 +3,7 @@ |
13 |
|
14 |
EAPI=7 |
15 |
|
16 |
-inherit autotools flag-o-matic linux-mod toolchain-funcs |
17 |
+inherit autotools dist-kernel-utils flag-o-matic linux-mod toolchain-funcs |
18 |
|
19 |
DESCRIPTION="Linux ZFS kernel module for sys-fs/zfs" |
20 |
HOMEPAGE="https://github.com/openzfs/zfs" |
21 |
@@ -158,6 +158,10 @@ pkg_postinst() { |
22 |
rmdir --ignore-fail-on-non-empty "${EROOT}/lib/modules/${KV_FULL}/addon" |
23 |
fi |
24 |
|
25 |
+ if [[ -z ${ROOT} ]] && use dist-kernel; then |
26 |
+ dist-kernel_reinstall_initramfs "${KV_DIR}" "${KV_FULL}" |
27 |
+ fi |
28 |
+ |
29 |
if use x86 || use arm; then |
30 |
ewarn "32-bit kernels will likely require increasing vmalloc to" |
31 |
ewarn "at least 256M and decreasing zfs_arc_max to some value less than that." |
32 |
diff --git a/sys-fs/zfs-kmod/zfs-kmod-2.0.1.ebuild b/sys-fs/zfs-kmod/zfs-kmod-2.0.1.ebuild |
33 |
index 4ea7b063affe..2fbfd85f7ccf 100644 |
34 |
--- a/sys-fs/zfs-kmod/zfs-kmod-2.0.1.ebuild |
35 |
+++ b/sys-fs/zfs-kmod/zfs-kmod-2.0.1.ebuild |
36 |
@@ -3,7 +3,7 @@ |
37 |
|
38 |
EAPI=7 |
39 |
|
40 |
-inherit autotools flag-o-matic linux-mod toolchain-funcs |
41 |
+inherit autotools dist-kernel-utils flag-o-matic linux-mod toolchain-funcs |
42 |
|
43 |
DESCRIPTION="Linux ZFS kernel module for sys-fs/zfs" |
44 |
HOMEPAGE="https://github.com/openzfs/zfs" |
45 |
@@ -149,6 +149,10 @@ pkg_postinst() { |
46 |
rmdir --ignore-fail-on-non-empty "${EROOT}/lib/modules/${KV_FULL}/addon" |
47 |
fi |
48 |
|
49 |
+ if [[ -z ${ROOT} ]] && use dist-kernel; then |
50 |
+ dist-kernel_reinstall_initramfs "${KV_DIR}" "${KV_FULL}" |
51 |
+ fi |
52 |
+ |
53 |
if use x86 || use arm; then |
54 |
ewarn "32-bit kernels will likely require increasing vmalloc to" |
55 |
ewarn "at least 256M and decreasing zfs_arc_max to some value less than that." |
56 |
diff --git a/sys-fs/zfs-kmod/zfs-kmod-9999.ebuild b/sys-fs/zfs-kmod/zfs-kmod-9999.ebuild |
57 |
index 4ea7b063affe..2fbfd85f7ccf 100644 |
58 |
--- a/sys-fs/zfs-kmod/zfs-kmod-9999.ebuild |
59 |
+++ b/sys-fs/zfs-kmod/zfs-kmod-9999.ebuild |
60 |
@@ -3,7 +3,7 @@ |
61 |
|
62 |
EAPI=7 |
63 |
|
64 |
-inherit autotools flag-o-matic linux-mod toolchain-funcs |
65 |
+inherit autotools dist-kernel-utils flag-o-matic linux-mod toolchain-funcs |
66 |
|
67 |
DESCRIPTION="Linux ZFS kernel module for sys-fs/zfs" |
68 |
HOMEPAGE="https://github.com/openzfs/zfs" |
69 |
@@ -149,6 +149,10 @@ pkg_postinst() { |
70 |
rmdir --ignore-fail-on-non-empty "${EROOT}/lib/modules/${KV_FULL}/addon" |
71 |
fi |
72 |
|
73 |
+ if [[ -z ${ROOT} ]] && use dist-kernel; then |
74 |
+ dist-kernel_reinstall_initramfs "${KV_DIR}" "${KV_FULL}" |
75 |
+ fi |
76 |
+ |
77 |
if use x86 || use arm; then |
78 |
ewarn "32-bit kernels will likely require increasing vmalloc to" |
79 |
ewarn "at least 256M and decreasing zfs_arc_max to some value less than that." |
80 |
-- |
81 |
2.30.0 |