From 87e90d7f4a344d8e0f638acfccb3e5a387a1658c Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Fri, 20 Nov 2015 10:21:31 +0100 Subject: [PATCH] For rd.hostonly=0 remove all initqueue/finished files also This helps booting systems with changed configuration --- modules.d/99base/dracut-lib.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules.d/99base/dracut-lib.sh b/modules.d/99base/dracut-lib.sh index d3a7b59166..ad03394f04 100755 --- a/modules.d/99base/dracut-lib.sh +++ b/modules.d/99base/dracut-lib.sh @@ -1288,7 +1288,7 @@ show_memstats() } remove_hostonly_files() { - rm -fr /etc/cmdline /etc/cmdline.d/*.conf + rm -fr /etc/cmdline /etc/cmdline.d/*.conf "$hookdir/initqueue/finished" if [ -f /lib/dracut/hostonly-files ]; then while read line || [ -n "$line" ]; do [ -e "$line" ] || [ -h "$line" ] || continue