Drop mdevd plugin, not needed since notify:s6 support was added

For an example how to set it up, see the finit-skel repository:

https://github.com/troglobit/finit-skel/blob/main/skel/etc/finit.d/available/mdevd.conf

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg
2022-12-21 11:57:48 +01:00
parent 4c90b51d80
commit f6bfbc86e9
6 changed files with 15 additions and 153 deletions
+1 -17
View File
@@ -39,21 +39,6 @@ static void setup(void *arg)
return;
}
/*
* If the mdevd plugin is enabled and loaded we assume this
* system is mdevd based, skipping below udev/mdev checks.
*/
if (plugin_find("mdevd")) {
path = which("mdevd-coldplug");
if (path) {
snprintf(cmd, sizeof(cmd), "cgroup.system [S] <service/mdevd/ready> log %s "
" -- Populating device tree", path);
service_register(SVC_TYPE_RUN, cmd, global_rlimit, NULL);
free(path);
}
return;
}
/*
* Populate /dev and prepare for runtime events from kernel.
* Prefer udev if mdev is also available on the system.
@@ -105,13 +90,12 @@ static void setup(void *arg)
}
}
/* mdevd optional, if installed & loaded changes behavior of setup() */
static plugin_t plugin = {
.name = __FILE__,
.hook[HOOK_BASEFS_UP] = {
.cb = setup
},
.depends = { "bootmisc", "mdevd", "modprobe" },
.depends = { "bootmisc", "modprobe" },
};
PLUGIN_INIT(plugin_init)