commit: b77e7ab91fe14f238eb6a4a7a0f0b963909fb1a1
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Sat Aug 1 18:55:27 2020 +0000
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Sat Aug 1 20:48:20 2020 +0000
URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=b77e7ab9
genkernel: Update kerncache only when kernel was built
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
genkernel | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/genkernel b/genkernel
index b96e388..b601eb0 100755
--- a/genkernel
+++ b/genkernel
@@ -378,11 +378,8 @@ fi
if [ -n "${KERNCACHE}" ]
then
- if ! isTrue "${KERNCACHE_IS_VALID}"
+ if isTrue "${BUILD_KERNEL}" && ! isTrue "${KERNCACHE_IS_VALID}"
then
- # Only update KERNCACHE when KERNCACHE wasn't used because
- # when it was used nothing has been changed so no update is
- # necessary.
print_info 1 '' 1 0
gen_kerncache
else