fsck: do not pull down mount units on soft-reboot
authorLuca Boccassi <bluca@debian.org>
Mon, 8 Jul 2024 15:23:06 +0000 (16:23 +0100)
committerLuca Boccassi <bluca@debian.org>
Mon, 22 Jul 2024 09:26:01 +0000 (10:26 +0100)
Otherwise they will pull down the disk too, which we don't want on soft-reboot

(cherry picked from commit bbb0b72849ebbeeb8e252d9aeed94521df4f0ae8)

units/systemd-fsck@.service.in

index 65521b1087b81a03d591b7cb52642d0b25a80116..8eb4821d41f5e528384ff0142577fe09ef46fa99 100644 (file)
@@ -12,7 +12,8 @@ Description=File System Check on %f
 Documentation=man:systemd-fsck@.service(8)
 DefaultDependencies=no
 BindsTo=%i.device
-Conflicts=shutdown.target
+IgnoreOnIsolate=yes
+Conflicts=reboot.target kexec.target poweroff.target halt.target
 After=%i.device systemd-fsck-root.service local-fs-pre.target
 Before=systemd-quotacheck.service shutdown.target