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
[X] I have tested it locally
[ ] I have reviewed and updated any documentation if relevant
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 viawait_for_dev
. But, thehookdirs
are always created at build time, and should not be removed.This patch also allows to remove the
mkdir
workaround in thenetwork-manager
module (copied-pasted into theconnman
module after), and avoids having to add it tree-wide in many missing places.Checklist
Fixes 87e90d7f4a344d8e0f638acfccb3e5a387a1658c Fixes #2620