aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/fwupd/files/patch-libfwupdplugin_fu-kernel.c
blob: 47d1e1e0594e57625ece5a2311417174c187b492 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
--- libfwupdplugin/fu-kernel.c.orig	2025-09-12 09:55:19 UTC
+++ libfwupdplugin/fu-kernel.c
@@ -329,6 +329,9 @@ fu_kernel_get_cmdline(GError **error)
 	if (!g_file_get_contents("/proc/cmdline", &buf, &bufsz, error))
 		return NULL;
 	return fu_kernel_parse_cmdline(buf, bufsz);
+#elif defined(__FreeBSD__)
+	// XXX: there is no /proc/cmdline equivalent
+	return fu_kernel_parse_cmdline("", 0);
 #else
 	g_set_error_literal(error,
 			    FWUPD_ERROR,