dracutdevs / dracut

dracut the event driven initramfs infrastructure
https://github.com/dracutdevs/dracut/wiki
GNU General Public License v2.0
573 stars 396 forks source link

fix(dracut-lib): only remove initqueue/finished scripts, not the hook dir #2623

Open aafeijoo-suse opened 4 months ago

aafeijoo-suse commented 4 months ago

The remove_hostonly_files function should only remove (as its name suggests) hostonly configuration and files. The initqueue/finished scripts considered as hostonly that must be removed are added via wait_for_dev. But, the hookdirs are always created at build time, and should not be removed.

This patch also allows to remove the mkdir workaround in the network-manager module (copied-pasted into the connman module after), and avoids having to add it tree-wide in many missing places.

Checklist

Fixes 87e90d7f4a344d8e0f638acfccb3e5a387a1658c Fixes #2620