406d64cbdb
- Fix 0182-fix-include-parsing.patch - Didn't parse arguments with spaces correctly - Add patch 0183-fix_add_drivers_hang.patch: - Fix possible hang in dracut caused by add_drivers+=" " in dracut.conf OBS-URL: https://build.opensuse.org/request/show/333153 OBS-URL: https://build.opensuse.org/package/show/Base:System/dracut?expand=0&rev=230
29 lines
739 B
Diff
29 lines
739 B
Diff
From d774a6f49771b9f55de2956c3c0038a7655b6e94 Mon Sep 17 00:00:00 2001
|
|
From: Fabian Vogt <fvogt@suse.com>
|
|
Date: Wed, 23 Sep 2015 12:12:08 +0200
|
|
Subject: [PATCH] Fix possible hang in dracut
|
|
|
|
- Caused by add_drivers+=" " in dracut.conf (bsc#923116)
|
|
|
|
Signed-off-by: Fabian Vogt <fvogt@suse.com>
|
|
---
|
|
dracut.sh | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/dracut.sh b/dracut.sh
|
|
index 44b8a3d..11a4a2e 100755
|
|
--- a/dracut.sh
|
|
+++ b/dracut.sh
|
|
@@ -1501,7 +1501,7 @@ if [[ $no_kernel != yes ]]; then
|
|
hostonly='' instmods $drivers
|
|
fi
|
|
|
|
- if [[ $add_drivers ]]; then
|
|
+ if [[ -n "${add_drivers// }" ]]; then
|
|
hostonly='' instmods -c $add_drivers
|
|
fi
|
|
if [[ $force_drivers ]]; then
|
|
--
|
|
2.5.1
|
|
|