- static const char kmod_table[] =
- /* This one we need to load explicitly, since
- * auto-loading on use doesn't work before udev
- * created the ghost device nodes, and we need it
- * earlier than that. */
- "autofs4\0" "/sys/class/misc/autofs\0"
+ static const struct {
+ const char *module;
+ const char *path;
+ bool warn;
+ bool (*condition_fn)(void);
+ } kmod_table[] = {
+ /* auto-loading on use doesn't work before udev is up */
+ { "autofs4", "/sys/class/misc/autofs", true, NULL },