sys-fs/zfs: add postinst message to 0.8.0 regarding genkernel
authorGeorgy Yakovlev <gyakovlev@gentoo.org>
Thu, 23 May 2019 18:37:53 +0000 (11:37 -0700)
committerGeorgy Yakovlev <gyakovlev@gentoo.org>
Thu, 23 May 2019 18:43:33 +0000 (11:43 -0700)
Package-Manager: Portage-2.3.66, Repoman-2.3.12
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
sys-fs/zfs/zfs-0.8.0.ebuild

index e24458b4194f6b95167fde693b88698caddec6ec..b128cd4729d0f9476511aa67040315d775b09564 100644 (file)
@@ -170,6 +170,13 @@ src_install() {
 }
 
 pkg_postinst() {
+       if has_version "<=sys-kernel/genkernel-3.5.3.3"; then
+               einfo "genkernel version 3.5.3.3 and earlier does NOT support"
+               einfo " unlocking pools with native zfs encryption enabled at boot"
+               einfo " use dracut or genkernel-9999 if you requre this functionality"
+               einfo
+       fi
+
        if ! use kernel-builtin && [[ ${PV} = "9999" ]]; then
                einfo "Adding ${P} to the module database to ensure that the"
                einfo "kernel modules and userland utilities stay in sync."