Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/genkernel:master commit in: defaults/
Date: Fri, 28 Aug 2020 20:18:50
Message-Id: 1598622337.3c7bcc98ee94cfda5d1d63d366a61bca281c965c.whissi@gentoo
1 commit: 3c7bcc98ee94cfda5d1d63d366a61bca281c965c
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Thu Aug 27 22:56:04 2020 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Fri Aug 28 13:45:37 2020 +0000
6 URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=3c7bcc98
7
8 defaults/initrd.scripts: log_msg(): Leave function early in case log file cannot be written
9
10 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
11
12 defaults/initrd.scripts | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15 diff --git a/defaults/initrd.scripts b/defaults/initrd.scripts
16 index 29ec123..b579e4f 100644
17 --- a/defaults/initrd.scripts
18 +++ b/defaults/initrd.scripts
19 @@ -1072,7 +1072,7 @@ log_msg() {
20
21 if [ ! -f "${GK_INIT_LOG}" ]
22 then
23 - touch "${GK_INIT_LOG}"
24 + touch "${GK_INIT_LOG}" 2>/dev/null || return
25 fi
26
27 local log_prefix=