summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorLudwig Nussel <ludwig.nussel@suse.de>2022-08-08 16:54:58 +0200
committerLuca Boccassi <luca.boccassi@gmail.com>2022-08-08 19:22:53 +0100
commit8313a1a5cd7a75d7e0b456c9d9a27fc6bacd3863 (patch)
treee15c2f110c49aff81b22dcc22e11555304aea6ac /src/core
parent7aa0b0121e2eef5d4caa676e746faed99d9ab097 (diff)
downloadsystemd-8313a1a5cd7a75d7e0b456c9d9a27fc6bacd3863.tar.gz
kmod-setup: load dmi-sysfs if it's a module
Diffstat (limited to 'src/core')
-rw-r--r--src/core/kmod-setup.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/kmod-setup.c b/src/core/kmod-setup.c
index f4488dd692..966631d44e 100644
--- a/src/core/kmod-setup.c
+++ b/src/core/kmod-setup.c
@@ -117,6 +117,9 @@ int kmod_setup(void) {
/* qemu_fw_cfg would be loaded by udev later, but we want to import credentials from it super early */
{ "qemu_fw_cfg", "/sys/firmware/qemu_fw_cfg", false, false, in_qemu },
+
+ /* dmi-sysfs is needed to import credentials from it super early */
+ { "dmi-sysfs", "/sys/firmware/dmi/entries", false, false, NULL },
};
_cleanup_(kmod_unrefp) struct kmod_ctx *ctx = NULL;
unsigned i;