File 0621-dracut-init-downgrade-module-load-failure-to-warning.patch of Package dracut.15766

From dd9229339ce8b14017b7e3905c6217d7dcdb049e Mon Sep 17 00:00:00 2001
From: Michal Suchanek <msuchanek@suse.de>
Date: Fri, 24 Apr 2020 11:34:43 +0200
Subject: [PATCH] dracut-init: downgrade module load failure to warning

References: bsc#1169997

While failure to load module is fatal for modprobe it is not necessarily
fatal to dracut. Remove the FATAL: text in the modprobe error message.

Signed-off-by: Michal Suchanek <msuchanek@suse.de>
---
 dracut-init.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dracut-init.sh b/dracut-init.sh
index 93c03a5f..8f4cf3ec 100644
--- a/dracut-init.sh
+++ b/dracut-init.sh
@@ -1207,7 +1207,8 @@ instmods() {
     # Capture all stderr from modprobe to _fderr. We could use {var}>...
     # redirections, but that would make dracut require bash4 at least.
     eval "( instmods_1 \"\$@\" ) ${_fderr}>&1" \
-        | while read line || [ -n "$line" ]; do [[ "$line" =~ $_filter_not_found ]] || echo $line;done | derror
+        | while read line || [ -n "$line" ]; do
+                [[ "$line" =~ $_filter_not_found ]] || echo ${line#modprobe: FATAL:}; done | dwarn
     _ret=$?
     return $_ret
 }
-- 
2.26.1

openSUSE Build Service is sponsored by