Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/genkernel:master commit in: /
Date: Mon, 29 Jul 2019 20:10:29
Message-Id: 1564430427.f1d4e1574faf52d756c9f8af088b5f379f5b9798.whissi@gentoo
1 commit: f1d4e1574faf52d756c9f8af088b5f379f5b9798
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jul 28 21:16:36 2019 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Mon Jul 29 20:00:27 2019 +0000
6 URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=f1d4e157
7
8 genkernel: Only show information about kernel when kernel was actually installed
9
10 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
11
12 genkernel | 27 +++++++++++++++++----------
13 1 file changed, 17 insertions(+), 10 deletions(-)
14
15 diff --git a/genkernel b/genkernel
16 index d8700ea..e405a95 100755
17 --- a/genkernel
18 +++ b/genkernel
19 @@ -407,11 +407,15 @@ then
20 esac
21 else
22 print_info 1 ''
23 - print_info 1 "You will find the kernel image in '${TMPDIR}/${GK_FILENAME_TEMP_KERNEL}'."
24
25 - if isTrue "${GENZIMAGE}"
26 + if ! isTrue "${KERNCACHE_IS_VALID}"
27 then
28 - print_info 1 "You will find the kernelz binary in '${TMPDIR}/${GK_FILENAME_TEMP_KERNELZ}'."
29 + print_info 1 "You will find the kernel image in '${TMPDIR}/${GK_FILENAME_TEMP_KERNEL}'."
30 +
31 + if isTrue "${GENZIMAGE}"
32 + then
33 + print_info 1 "You will find the kernelz binary in '${TMPDIR}/${GK_FILENAME_TEMP_KERNELZ}'."
34 + fi
35 fi
36
37 if isTrue "${BUILD_RAMDISK}"
38 @@ -420,13 +424,16 @@ then
39 fi
40 fi
41
42 - print_info 1 ''
43 - print_info 1 'Required kernel parameter:'
44 - print_info 1 ''
45 - print_info 1 ' root=/dev/$ROOT'
46 - print_info 1 ''
47 - print_info 1 'Where $ROOT is the device node for your root partition as the'
48 - print_info 1 'one specified in /etc/fstab'
49 + if isTrue "${CMD_INSTALL}" || ! isTrue "${KERNCACHE_IS_VALID}"
50 + then
51 + print_info 1 ''
52 + print_info 1 'Required kernel parameter:'
53 + print_info 1 ''
54 + print_info 1 ' root=/dev/$ROOT'
55 + print_info 1 ''
56 + print_info 1 'Where $ROOT is the device node for your root partition as the'
57 + print_info 1 'one specified in /etc/fstab'
58 + fi
59
60 if isTrue "${show_warning_initramfs_is_required}" && isTrue "${BUILD_RAMDISK}"
61 then