Harald Hoyer 19aece
From 7117bf627028298970d8a6a5e153e1942f3430f3 Mon Sep 17 00:00:00 2001
Harald Hoyer 19aece
From: Daniel Molkentin <dmolkentin@suse.com>
Harald Hoyer 19aece
Date: Fri, 19 Oct 2018 14:30:36 +0200
Harald Hoyer 19aece
Subject: [PATCH] 99base: Allow files with backslashes in hostonly files
Harald Hoyer 19aece
Harald Hoyer 19aece
Files with blackslashes are routinely by systemd.
Harald Hoyer 19aece
Harald Hoyer 19aece
Reference: bsc#1090884
Harald Hoyer 19aece
---
Harald Hoyer 19aece
 modules.d/99base/dracut-lib.sh | 2 +-
Harald Hoyer 19aece
 1 file changed, 1 insertion(+), 1 deletion(-)
Harald Hoyer 19aece
Harald Hoyer 19aece
diff --git a/modules.d/99base/dracut-lib.sh b/modules.d/99base/dracut-lib.sh
Harald Hoyer 19aece
index f71e757c..ab348855 100755
Harald Hoyer 19aece
--- a/modules.d/99base/dracut-lib.sh
Harald Hoyer 19aece
+++ b/modules.d/99base/dracut-lib.sh
Harald Hoyer 19aece
@@ -1327,7 +1327,7 @@ show_memstats()
Harald Hoyer 19aece
 remove_hostonly_files() {
Harald Hoyer 19aece
     rm -fr /etc/cmdline /etc/cmdline.d/*.conf "$hookdir/initqueue/finished"
Harald Hoyer 19aece
     if [ -f /lib/dracut/hostonly-files ]; then
Harald Hoyer 19aece
-        while read line || [ -n "$line" ]; do
Harald Hoyer 19aece
+        while read -r line || [ -n "$line" ]; do
Harald Hoyer 19aece
             [ -e "$line" ] || [ -h "$line" ] || continue
Harald Hoyer 19aece
             rm -f "$line"
Harald Hoyer 19aece
         done < /lib/dracut/hostonly-files
Harald Hoyer 19aece