diff options
author | Thomas Deutschmann <whissi@gentoo.org> | 2020-08-28 00:56:04 +0200 |
---|---|---|
committer | Thomas Deutschmann <whissi@gentoo.org> | 2020-08-28 15:45:37 +0200 |
commit | 3c7bcc98ee94cfda5d1d63d366a61bca281c965c (patch) | |
tree | 6a65cac2a0cc8840b9e17cbb1689acadbc50451e | |
parent | gen_configkernel.sh: config_kernel(): Ensure kernel supports TMPFS (diff) | |
download | genkernel-3c7bcc98.tar.gz genkernel-3c7bcc98.tar.bz2 genkernel-3c7bcc98.zip |
defaults/initrd.scripts: log_msg(): Leave function early in case log file cannot be written
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
-rw-r--r-- | defaults/initrd.scripts | 2 |
1 files changed, 1 insertions, 1 deletions
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= |