sys-kernel/genkernel: Tell user about new MODULEREBUILD option
authorThomas Deutschmann <whissi@gentoo.org>
Mon, 15 Jul 2019 18:15:52 +0000 (20:15 +0200)
committerThomas Deutschmann <whissi@gentoo.org>
Mon, 15 Jul 2019 18:17:19 +0000 (20:17 +0200)
Package-Manager: Portage-2.3.68, Repoman-2.3.16
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
sys-kernel/genkernel/genkernel-9999.ebuild

index c1e47a03889b960d45d5a9ae4d3e60b9a1f3ff18..8cab8f829e7b85f4d76164bce6d203e2e33ad685 100644 (file)
@@ -220,5 +220,12 @@ pkg_postinst() {
                                ewarn "in genkernel v4+ initramfs!"
                        fi
                fi
+
+               if grep -q -E "^CMD_CALLBACK=.*emerge.*@module-rebuild" "${gk_config}" 2>/dev/null ; then
+                       elog ""
+                       elog "Please remove `emerge @module-rebuild` from genkernel config"
+                       ewarn "file (${gk_config}) and make use of new MODULEREBUILD option"
+                       ewarn "instead."
+               fi
        fi
 }