udev: introduce io.systemd.Udev varlink interface (#35721)

Replaces #25523.
This commit is contained in:
Lennart Poettering
2025-01-07 16:49:37 +01:00
committed by GitHub
23 changed files with 415 additions and 41 deletions
+6
View File
@@ -28,9 +28,15 @@ blk="$(mktemp)"
dd if=/dev/zero of="$blk" bs=1M count=1
loopdev="$(losetup --show -f "$blk")"
# Wait for devices created in the above being processed.
udevadm settle --timeout 30
udevadm -h
INVOCATION_ID=$(systemctl show --property InvocationID --value systemd-udevd.service)
udevadm control -e
# Wait for systemd-udevd.service being restarted.
timeout 30 bash -ec "while [[ \"\$(systemctl show --property InvocationID --value systemd-udevd.service)\" == \"$INVOCATION_ID\" ]]; do sleep .5; done"
udevadm control -l emerg
udevadm control -l alert
udevadm control -l crit