]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
units/initrd-cleanup.service: drop --job-mode=replace-irreversibly hack
authorMike Yuan <me@yhndnzj.com>
Mon, 30 Jun 2025 10:47:21 +0000 (12:47 +0200)
committerMike Yuan <me@yhndnzj.com>
Mon, 30 Jun 2025 11:10:28 +0000 (13:10 +0200)
This partially reverts d766c75acdd825abe1bcfd45406ae2e609a008b6.

The offending commit tries to block systemd-udevd.service
from being activated during switch-root, but it is a dirty hack
and causes problems with e.g. Ctrl-Alt-Delete handling which
actually need to start a conflicting target. Let's revert
this here, and the original issue will be resolved in a cleaner
fashion in later commits.

units/initrd-cleanup.service

index 9c7914e34104b9606d469e6bb5842280a6515e46..08ab5039627fc693abfd4d500f88baac5ebc5879 100644 (file)
@@ -18,4 +18,3 @@ After=initrd-root-fs.target initrd-fs.target initrd.target
 [Service]
 Type=oneshot
 ExecStart=systemctl --no-block isolate initrd-switch-root.target
-ExecStart=systemctl --no-block --job-mode=replace-irreversibly start initrd-switch-root.service