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: Sat, 01 Aug 2020 21:41:54
Message-Id: 1596314079.dcac082e5182388556b5841cc2f0e2e8f80bc279.whissi@gentoo
1 commit: dcac082e5182388556b5841cc2f0e2e8f80bc279
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Sat Aug 1 19:53:51 2020 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Sat Aug 1 20:34:39 2020 +0000
6 URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=dcac082e
7
8 gen_initramfs.sh: create_initramfs(): set_initramfs_compression_method() must be called when kerncache is used
9
10 Follow-up: a864c2f ("gen_initramfs.sh: create_initramfs(): Call set_initramfs_compression_method() when not building kernel")
11 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
12
13 gen_initramfs.sh | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
16 diff --git a/gen_initramfs.sh b/gen_initramfs.sh
17 index 570100e..e48fa06 100755
18 --- a/gen_initramfs.sh
19 +++ b/gen_initramfs.sh
20 @@ -2069,7 +2069,7 @@ create_initramfs() {
21 else
22 if isTrue "${COMPRESS_INITRD}"
23 then
24 - if ! isTrue "${BUILD_KERNEL}"
25 + if ! isTrue "${BUILD_KERNEL}" || isTrue "${KERNCACHE_IS_VALID}"
26 then
27 # We need to initialize COMPRESS_INITRD_TYPE in case it was set
28 # to best/fastest