commit: 654a962bd3112a1956016ebd4d8c88a9953a13bd
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Jan 12 12:29:34 2021 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Jan 16 09:53:09 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=654a962b
kernel-install.eclass: Improve error message on /boot problems
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 <mgorny <AT> 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 0870999fa5a..b8109f47d0b 100644
--- a/eclass/kernel-install.eclass
+++ b/eclass/kernel-install.eclass
@@ -346,7 +346,7 @@ kernel-install_install_all() {
local success=
# not an actual loop but allows error handling with 'break'
while :; do
- mount-boot_pkg_preinst
+ nonfatal mount-boot_check_status || break
local image_path=$(dist-kernel_get_image_path)
if use initramfs; then