1 |
commit: c61d4df8b9bd438002a8db7ea6fa92301b5f4403 |
2 |
Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jul 2 19:30:07 2021 +0000 |
4 |
Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jul 2 19:30:07 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c61d4df8 |
7 |
|
8 |
sys-fs/zfs-kmod: sync live ebuild |
9 |
|
10 |
Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org> |
11 |
|
12 |
sys-fs/zfs-kmod/zfs-kmod-9999.ebuild | 40 ++++++++++++------------------------ |
13 |
1 file changed, 13 insertions(+), 27 deletions(-) |
14 |
|
15 |
diff --git a/sys-fs/zfs-kmod/zfs-kmod-9999.ebuild b/sys-fs/zfs-kmod/zfs-kmod-9999.ebuild |
16 |
index 9306651ee82..1bb0a99b0c6 100644 |
17 |
--- a/sys-fs/zfs-kmod/zfs-kmod-9999.ebuild |
18 |
+++ b/sys-fs/zfs-kmod/zfs-kmod-9999.ebuild |
19 |
@@ -165,15 +165,6 @@ src_install() { |
20 |
pkg_postinst() { |
21 |
linux-mod_pkg_postinst |
22 |
|
23 |
- # Remove old modules |
24 |
- if [[ -d "${EROOT}/lib/modules/${KV_FULL}/addon/zfs" ]]; then |
25 |
- ewarn "${PN} now installs modules in ${EROOT}/lib/modules/${KV_FULL}/extra/zfs" |
26 |
- ewarn "Old modules were detected in ${EROOT}/lib/modules/${KV_FULL}/addon/zfs" |
27 |
- ewarn "Automatically removing old modules to avoid problems." |
28 |
- rm -r "${EROOT}/lib/modules/${KV_FULL}/addon/zfs" || die "Cannot remove modules" |
29 |
- rmdir --ignore-fail-on-non-empty "${EROOT}/lib/modules/${KV_FULL}/addon" |
30 |
- fi |
31 |
- |
32 |
if [[ -z ${ROOT} ]] && use dist-kernel; then |
33 |
set_arch_to_portage |
34 |
dist-kernel_reinstall_initramfs "${KV_DIR}" "${KV_FULL}" |
35 |
@@ -184,22 +175,17 @@ pkg_postinst() { |
36 |
ewarn "at least 256M and decreasing zfs_arc_max to some value less than that." |
37 |
fi |
38 |
|
39 |
- ewarn "This version of OpenZFS includes support for new feature flags" |
40 |
- ewarn "that are incompatible with previous versions. GRUB2 support for" |
41 |
- ewarn "/boot with the new feature flags is not yet available." |
42 |
- ewarn "Do *NOT* upgrade root pools to use the new feature flags." |
43 |
- ewarn "Any new pools will be created with the new feature flags by default" |
44 |
- ewarn "and will not be compatible with older versions of ZFSOnLinux. To" |
45 |
- ewarn "create a newpool that is backward compatible wih GRUB2, use " |
46 |
- ewarn |
47 |
- ewarn "zpool create -d -o feature@async_destroy=enabled " |
48 |
- ewarn " -o feature@empty_bpobj=enabled -o feature@lz4_compress=enabled" |
49 |
- ewarn " -o feature@spacemap_histogram=enabled" |
50 |
- ewarn " -o feature@enabled_txg=enabled " |
51 |
- ewarn " -o feature@extensible_dataset=enabled -o feature@bookmarks=enabled" |
52 |
- ewarn " ..." |
53 |
- ewarn |
54 |
- ewarn "GRUB2 support will be updated as soon as either the GRUB2" |
55 |
- ewarn "developers do a tag or the Gentoo developers find time to backport" |
56 |
- ewarn "support from GRUB2 HEAD." |
57 |
+ if has_version sys-boot/grub; then |
58 |
+ ewarn "This version of OpenZFS includes support for new feature flags" |
59 |
+ ewarn "that are incompatible with previous versions. GRUB2 support for" |
60 |
+ ewarn "/boot with the new feature flags is not yet available." |
61 |
+ ewarn "Do *NOT* upgrade root pools to use the new feature flags." |
62 |
+ ewarn "Any new pools will be created with the new feature flags by default" |
63 |
+ ewarn "and will not be compatible with older versions of ZFSOnLinux. To" |
64 |
+ ewarn "create a newpool that is backward compatible wih GRUB2, use " |
65 |
+ ewarn |
66 |
+ ewarn "zpool create -o compatibility=grub2 ..." |
67 |
+ ewarn |
68 |
+ ewarn "Refer to /etc/zfs/compatibility.d/grub2 for list of features." |
69 |
+ fi |
70 |
} |