25 Jun
2016
25 Jun
'16
19:52
W dniu 25.06.2016 o 20:50, Andrei Borzenkov pisze:
25.06.2016 14:17, Adam Mizerski пишет:
2) Should the package call "udevadm control --reload" in %post and %postun? I've found that there's a macro for this %udev_rules_update [1]. But I couldn't find any package doing that.
udevd checks rules directories timestamp every 3 seconds and reloads rules if it changed. Updating file via RPM is guaranteed to update directory timestamp because RPM creates temporary file first. So the question is whether you care about 3 seconds window enough to reload rules manually.
Thanks. That explains a lot. -- Adam Mizerski