]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fix(systemd): add missing modprobe@.service
authorAntonio Alvarez Feijoo <antonio.feijoo@suse.com>
Wed, 21 Sep 2022 09:54:17 +0000 (11:54 +0200)
committerJóhann B. Guðmundsson <johannbg@gmail.com>
Mon, 26 Sep 2022 09:09:36 +0000 (09:09 +0000)
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.

modules.d/00systemd/module-setup.sh

index 1f255d807e4156874655d8d190dff6344ecb7e68..cd9b3cd02bdcbae5221f768d815ea4989ea979d2 100755 (executable)
@@ -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 \