Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Cc: "Michał Górny" <mgorny@g.o>
Subject: [gentoo-dev] [PATCH 6/6] kernel-install.eclass: Improve error message on /boot problems
Date: Wed, 13 Jan 2021 14:37:37
Message-Id: 20210113143516.1766-7-mgorny@gentoo.org
In Reply to: [gentoo-dev] [PATCH 0/6] kernel-install.eclass: dracut uefi=yes support + improved error handling by "Michał Górny"
1 Use the newly-introduced mount-boot.eclass nonfatal support to amend
2 the error message with the instruction to run 'emerge --config' rather
3 than rebuild the whole kernel.
4
5 Signed-off-by: Michał Górny <mgorny@g.o>
6 ---
7 eclass/kernel-install.eclass | 2 +-
8 1 file changed, 1 insertion(+), 1 deletion(-)
9
10 diff --git a/eclass/kernel-install.eclass b/eclass/kernel-install.eclass
11 index f9b1834266dd..4263ec9f30a1 100644
12 --- a/eclass/kernel-install.eclass
13 +++ b/eclass/kernel-install.eclass
14 @@ -345,7 +345,7 @@ kernel-install_install_all() {
15
16 local success=
17 while :; do
18 - mount-boot_pkg_preinst
19 + nonfatal mount-boot_check_status || break
20
21 local image_path=$(dist-kernel_get_image_path)
22 if use initramfs; then
23 --
24 2.30.0