Snap auto-import takes a long time to boot

We have a customer device with many /dev/loop* and /dev/ram* devices. The SoC is rather low-end too. We found that “snap auto-import” is being run for each of these virtual block devices, which delays boot on around 1 minute (there are ~300 block devices). The following bootchart shows all these invocations to “snap auto-import”: https://drive.google.com/file/d/11ko4dfGMEgk-cHu_i-_QSQ5gQfAnI8vX/view?usp=sharing

Fixing snapd udev rule in this way:

https://github.com/snapcore/snapd/pull/4776

removes the issue. Any comment about the change?