[systemd-devel] Waiting for systemd to handle events sent by systemd-udev

Francis Moreau francis.moro at gmail.com
Mon Jun 16 19:11:50 UTC 2025


Hello,

I'd like to know if there's a mechanism that allows to wait that all
events triggered by the modifications of the disk partition table of a
given block device are processed by systemd so the corresponding
device unit state is stable.

Currently I can see that the device unit is entering in unplugged then
plugged states when the block device is closed.

I'm aware that such mechanism exists for udev but I'd also like to be
sure that before starting a service depending on the device unit, the
events sent by udev to systemd are handled so the device unit is not
going through the unplugged state.

Thank you.
-- 
Francis


More information about the systemd-devel mailing list