-#pragma GCC diagnostic pop
-
-static bool kmod_check_cmdline(void) {
- _cleanup_free_ char *line = NULL;
-
- if (proc_cmdline(&line) < 0)
- return false;
-
- return strstr(line, "kdbus") == 0;
+static bool cmdline_check_kdbus(void) {
+ return get_proc_cmdline_key("kdbus", NULL) > 0;