Use the newly-introduced mount-boot.eclass nonfatal support to amend
the error message with the instruction to run 'emerge --config' rather
than rebuild the whole kernel.

Signed-off-by: Michał Górny <mgo...@gentoo.org>
---
 eclass/kernel-install.eclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/eclass/kernel-install.eclass b/eclass/kernel-install.eclass
index f9b1834266dd..4263ec9f30a1 100644
--- a/eclass/kernel-install.eclass
+++ b/eclass/kernel-install.eclass
@@ -345,7 +345,7 @@ kernel-install_install_all() {
 
        local success=
        while :; do
-               mount-boot_pkg_preinst
+               nonfatal mount-boot_check_status || break
 
                local image_path=$(dist-kernel_get_image_path)
                if use initramfs; then
-- 
2.30.0


Reply via email to