My root file system is a LVM2 logic volume, and there are few snapshots of it beside. Every time when I run update-grub, it always add menu entries for those snapshots as if they are normal volumes. This behavior not only generates garbage in grub.cfg, but also let it possible to hurt my system because booting from a snapshot is defective.
I know GRUB_DISABLE_OS_PROBER=true can solve it, but I still need OS prober also, because there are Windows volumes in same disk, and I want grub making menu entries for them.
Is there a way I can do it ?
Thanks a lot!