]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
units: enable IgnoreOnIsolate=yes on systemd-udevd-kernel.socket
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 7 May 2025 12:44:22 +0000 (21:44 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 7 May 2025 16:29:53 +0000 (01:29 +0900)
Otherwise, initrd-cleanup.service requests isolation thus the socket
is stopped before switching root, and several early events after
switching root may be lost.

units/systemd-udevd-kernel.socket

index 0d46043e2fbab159de4426410ed753745f47585a..d337b06ea0d353d1215efff4ad56a6ccd4b9e499 100644 (file)
@@ -14,6 +14,11 @@ DefaultDependencies=no
 Before=sockets.target
 ConditionPathIsReadWrite=/sys
 
+# To prevent loss of kernel events from isolate requests. This is important on
+# switching root, as otherwise the unit is stopped by initrd-cleanup.service,
+# and several early events after switching root may be lost.
+IgnoreOnIsolate=yes
+
 [Socket]
 Service=systemd-udevd.service
 ReceiveBuffer=128M