units/initrd-cleanup.service: drop --job-mode=replace-irreversibly hack

This partially reverts d766c75acd.

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.
This commit is contained in:
Mike Yuan
2025-06-30 12:47:21 +02:00
parent 7707eb8fc2
commit 286c61732f

View 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