]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
units: don't force the loading of the loop and dm_mod modules in systemd-repart.service
authorFranck Bui <fbui@suse.com>
Wed, 10 Sep 2025 13:30:31 +0000 (15:30 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 17 Sep 2025 23:46:34 +0000 (08:46 +0900)
This avoids loading the aforementioned modules when systemd-repart is skipped
during the boot process, which is the case most of the time.

units/systemd-repart.service

index 85a2a9b8718cad0fa269643842e3789ad6ee5a44..cee77f59a59624e105da26b5cac176d6af76c063 100644 (file)
@@ -20,8 +20,7 @@ ConditionDirectoryNotEmpty=|/sysusr/usr/lib/repart.d
 ConditionDirectoryNotEmpty=|/sysusr/usr/local/lib/repart.d
 
 DefaultDependencies=no
-Wants=modprobe@loop.service modprobe@dm_mod.service
-After=initrd-usr-fs.target modprobe@loop.service modprobe@dm_mod.service systemd-tpm2-setup-early.service
+After=initrd-usr-fs.target systemd-tpm2-setup-early.service systemd-tmpfiles-setup-dev.service
 Before=initrd-root-fs.target factory-reset-now.target
 Conflicts=shutdown.target initrd-switch-root.target
 Before=shutdown.target initrd-switch-root.target