aboutsummaryrefslogtreecommitdiff
path: root/sysutils/fwupd/files/patch-libfwupdplugin_fu-kernel.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/fwupd/files/patch-libfwupdplugin_fu-kernel.c')
-rw-r--r--sysutils/fwupd/files/patch-libfwupdplugin_fu-kernel.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/sysutils/fwupd/files/patch-libfwupdplugin_fu-kernel.c b/sysutils/fwupd/files/patch-libfwupdplugin_fu-kernel.c
new file mode 100644
index 000000000000..47d1e1e0594e
--- /dev/null
+++ b/sysutils/fwupd/files/patch-libfwupdplugin_fu-kernel.c
@@ -0,0 +1,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,