From: Antonio Alvarez Feijoo Date: Wed, 21 Sep 2022 09:54:17 +0000 (+0200) Subject: fix(systemd): add missing modprobe@.service X-Git-Tag: 058~163 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=928252a145ca44627ba5873e01245eabe246992f;p=thirdparty%2Fdracut.git fix(systemd): add missing modprobe@.service sys-kernel-config.mount needs modprobe@configfs.service since systemd v246.7 (https://github.com/systemd/systemd/commit/42cc2855), so the kernel configfs fails to mount in the initrd. --- diff --git a/modules.d/00systemd/module-setup.sh b/modules.d/00systemd/module-setup.sh index 1f255d807..cd9b3cd02 100755 --- a/modules.d/00systemd/module-setup.sh +++ b/modules.d/00systemd/module-setup.sh @@ -81,6 +81,7 @@ install() { \ "$systemdsystemunitdir"/sys-kernel-config.mount \ \ + "$systemdsystemunitdir"/modprobe@.service \ "$systemdsystemunitdir"/kmod-static-nodes.service \ "$systemdsystemunitdir"/systemd-tmpfiles-setup.service \ "$systemdsystemunitdir"/systemd-tmpfiles-setup-dev.service \ @@ -174,6 +175,8 @@ install() { /etc/systemd/journald.conf.d/*.conf \ /etc/systemd/system.conf \ /etc/systemd/system.conf.d/*.conf \ + "$systemdsystemconfdir"/modprobe@.service \ + "$systemdsystemconfdir/modprobe@.service.d/*.conf" \ /etc/hosts \ /etc/hostname \ /etc/nsswitch.conf \