commit: 3c7bcc98ee94cfda5d1d63d366a61bca281c965c
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Thu Aug 27 22:56:04 2020 +0000
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Fri Aug 28 13:45:37 2020 +0000
URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=3c7bcc98
defaults/initrd.scripts: log_msg(): Leave function early in case log file
cannot be written
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
defaults/initrd.scripts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/defaults/initrd.scripts b/defaults/initrd.scripts
index 29ec123..b579e4f 100644
--- a/defaults/initrd.scripts
+++ b/defaults/initrd.scripts
@@ -1072,7 +1072,7 @@ log_msg() {
if [ ! -f "${GK_INIT_LOG}" ]
then
- touch "${GK_INIT_LOG}"
+ touch "${GK_INIT_LOG}" 2>/dev/null || return
fi
local log_prefix=