I am currently looking into this bug. Summary of the issue:
Original bug reported was that os-prober scripts left hanging mounts, typically with lvm snapshots, causing issues with update-grub. This was due to the scripts exiting when grub-probe couldn't recognize a file system type. This has been addressed by defaulting type to fuseblk, so the script continues. Fix - https://launchpad.net/ubuntu/+source/os- prober/1.83ubuntu2 However this caused a regression, as new invalid entries were created in grub.cfg. When update-grub runs, it creates entries under /etc/grub.d/30_os-prober section in grub.cfg for other OS. Due to this issue for the new entries created, though the labels say “(on /dev/mapper/ubuntu--vg-rootfs--snap)”, the kernel arg still says root=/dev/mapper/ubuntu--vg-ubuntu--lv (the live/origin LV), not the snapshot LV. Evidence attached - lp1987679_grub_cfg_regression_evidence.txt Current status: In Jammy and Noble, the original bug still exists (unmounted files). Jammy: 1.79ubuntu2 and Noble: 1.81ubuntu4 The original fix to address unmounted file systems was released, hence fixed in Resolute. But that causes the regression mentioned. I am attempting to address this by removing the default to fuseblk and unmount the mounted files, as suggested in comment #19. This fixes the original problem and ignores these files not recognised by grub-probe. grub.cfg attached post the fix (no entries in /etc/grub.d/30_os-prober section) - lp1987679_grub_cfg_fix_evidence.txt Created a test package - [https://launchpad.net/~dokurb/+archive/ubuntu/lp1987679-test] ** Attachment added: "https://launchpad.net/~dokurb/+archive/ubuntu/lp1987679-test" https://launchpad.net/~dokurb/+archive/ubuntu/lp1987679-test -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1987679 Title: os-prober leaves filesystems (lvm-thin, lvm snap) mounted To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/os-prober/+bug/1987679/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
