]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
99base: Allow files with backslashes in hostonly files
authorDaniel Molkentin <dmolkentin@suse.com>
Fri, 19 Oct 2018 12:30:36 +0000 (14:30 +0200)
committerHarald Hoyer <harald@hoyer.xyz>
Mon, 22 Oct 2018 07:36:26 +0000 (09:36 +0200)
Files with blackslashes are routinely by systemd.

Reference: bsc#1090884

modules.d/99base/dracut-lib.sh

index f71e757cfc025c4adf23565970c3fa99514e6ea7..ab348855d9d0f8ea1e74359282143653ab27c089 100755 (executable)
@@ -1327,7 +1327,7 @@ show_memstats()
 remove_hostonly_files() {
     rm -fr /etc/cmdline /etc/cmdline.d/*.conf "$hookdir/initqueue/finished"
     if [ -f /lib/dracut/hostonly-files ]; then
-        while read line || [ -n "$line" ]; do
+        while read -r line || [ -n "$line" ]; do
             [ -e "$line" ] || [ -h "$line" ] || continue
             rm -f "$line"
         done < /lib/dracut/hostonly-files