]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
units: mountfsd needs to pull DM and loop kmods
authorLennart Poettering <lennart@poettering.net>
Thu, 23 Jan 2025 13:47:10 +0000 (14:47 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 23 Jan 2025 15:29:22 +0000 (16:29 +0100)
mountfsd is supposed to be available during early boot aleady, before
systemd-tmpfiles-setup-dev-early.service completes, hence make sure
loopback devices and DM already work before that.

As suggested by yuwata here:

https://github.com/systemd/systemd/pull/35685#issuecomment-2608157569

units/systemd-mountfsd.service.in

index 20a9b425abd272e071beef94849e85e09cdbdabe..ef413684c3660a2ed2352fb2052483331d9dcc6c 100644 (file)
@@ -10,8 +10,9 @@
 [Unit]
 Description=DDI File System Mounter
 Documentation=man:systemd-mountfsd.service(8)
+Wants=modprobe@loop.service modprobe@dm_mod.service
 Requires=systemd-mountfsd.socket
-After=systemd-mountfsd.socket
+After=systemd-mountfsd.socket modprobe@loop.service modprobe@dm_mod.service
 Conflicts=shutdown.target
 Before=sysinit.target shutdown.target
 DefaultDependencies=no