dracut/0524-Suppress-nonsensical-error-message-bsc-1032029.patch
Daniel Molkentin caa8d5a40c Accepting request 509401 from home:dmolkentin:branches:Base:System
- bail out if module directory does not exist (osc#1043900)
  * adds 0525-backport-bail-out-if-module-directory-does-not-exist.patch

OBS-URL: https://build.opensuse.org/request/show/509401
OBS-URL: https://build.opensuse.org/package/show/Base:System/dracut?expand=0&rev=312
2017-07-11 10:01:32 +00:00

25 lines
737 B
Diff

From a651341debaf284101cb32c27373ed9a0dec7107 Mon Sep 17 00:00:00 2001
From: Daniel Molkentin <dmolkentin@suse.com>
Date: Mon, 19 Jun 2017 13:42:43 +0200
Subject: [PATCH] Suppress nonsensical error message (bsc#1032029)
---
dracut.sh | 1 +
1 file changed, 1 insertion(+)
diff --git a/dracut.sh b/dracut.sh
index 69833cab..1016d5ae 100755
--- a/dracut.sh
+++ b/dracut.sh
@@ -788,6 +788,7 @@ declare -A suse_mod_deps
while read -r line; do
_suse_mod="${line##*SUSE INITRD: }"
_suse_mod="${_suse_mod%% REQUIRES*}"
+ test -z $_suse_mod && continue
suse_mod_deps["$_suse_mod"]="${suse_mod_deps["$_suse_mod"]} ${line##*REQUIRES }"
done <<< "$(grep -h "^# SUSE INITRD: " /etc/modprobe.d/[0-9][0-9]*.conf)"
--
2.12.3