]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
perf(dracut-systemd): drop ExecStart from oneshot shutdown service
authorBenjamin Drung <benjamin.drung@canonical.com>
Sat, 9 May 2026 10:01:08 +0000 (12:01 +0200)
committerdevkontrol <dev@kontrol.dev>
Sat, 11 Jul 2026 21:51:39 +0000 (17:51 -0400)
Systemd oneshot services that set `RemainAfterExit=yes` do not need to
specify `ExecStart` in case they define `ExecStop`.

So remove the useless `/bin/true` start command from
`dracut-shutdown.service`.

modules.d/77dracut-systemd/dracut-shutdown.service

index b2b704a4d3c7273261da8fb8a69fcf705aa6269f..e071ca8116fd0b6fba4ecafbd241eee746560cb4 100644 (file)
@@ -11,5 +11,4 @@ OnFailure=dracut-shutdown-onfailure.service
 [Service]
 RemainAfterExit=yes
 Type=oneshot
-ExecStart=/bin/true
 ExecStop=/usr/lib/dracut/dracut-initramfs-restore