rauc-target: disable the watching of a block device node with inotify
Barebox-state, mbr-switch and eMMC-bootloader updates operates on the root device node. This triggers the inotify which causes a partition rescan. This is racy as devices might disappear while RAUC tries to access them during a update.
Signed-off-by: Marco Felsch [email protected]
Please rebase onto current master to enable CI testing.
However, while the watch in our setup mainly affects rauc, I would not see this as belonging to the rauc package. It is more of general system handling. Thus please consider adapting the recipe that originally brought in the other udev rule we try to patch here. Or create a custom one.
@ejoerns hm it's up to you. We can add a .bbappend for systemd to override the default but then it gets overridden anytime. Should that be the case if we include the meta-rauc into our bsp?
No it should not be the default when adding. But this is a question on a different level that I want to target within the next days. The general idea is to make rauc a DISTRO_FEATURE and then enable all the more or less special stuff only if this feature is explicitly selected. @michaelolbrich @jluebbe any opinions on the scope of the rules file?
Is this still relevant? Or should we close it?
I think the scope of this rule is too broad to just install it with RAUC. Locking (https://systemd.io/BLOCK_DEVICE_LOCKING/) is probably better for this. I probably makes sense for RAUC to do that as well, at least for some operations (e.g. when messing with the MBR).