]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
For rd.hostonly=0 remove all initqueue/finished files also
authorHarald Hoyer <harald@redhat.com>
Fri, 20 Nov 2015 09:21:31 +0000 (10:21 +0100)
committerHarald Hoyer <harald@redhat.com>
Wed, 25 Nov 2015 13:21:33 +0000 (14:21 +0100)
This helps booting systems with changed configuration

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

index d3a7b591668cf0e3b80bc18a1bd0e33f9e0c3dde..ad03394f045f7520c074bd150125c565b363e3c2 100755 (executable)
@@ -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