os-prober doesn't detect Windows unless grub-mount installed
Hi! First of all, thanks for you work. I'm new to alpine, very nice distro.
I have a dual-boot system with windows 8. I installed latest alpine, grub, os-prober, ran grub-mkconfig and it didn't detect windows boot partition. After reading /usr/lib/os-probes/50mounted-tests I found that os-prober needs grub-mount for detection, but silently fails if that's not found. After installing grub-mount everything worked fine. So shouldn't then grub-mount be a dependency for os-prober? I understand that I could've just mounted ntfs partition and re-run grub-mkconfig, but that's not clear until you read os-prober's code.
I found one discussion on debian bug tracker. I understood it that os-prober uses specifically grub-mount
instead of mount -o ro
because the latter isn't truly read-only and can even cause data corruption in some cases. So they basically made os-prober depend on grub on debian.
As an alternative it could be added to the wiki article on dual-booting, that you must mount partitions before running grub-mkconfig in order to detect other OSes. Arch linux did exactly this in their wiki, but their grub package includes grub-mount, so everything works fine anyway.