os-prober leaves filesystems (lvm-thin, lvm snap) mounted
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
os-prober (Ubuntu) |
New
|
Medium
|
Unassigned | ||
Kinetic |
Won't Fix
|
Medium
|
Unassigned |
Bug Description
If one happens to have by accident (or on purpose) a thick LVM snapshot, or a thin-LV with a copy of a system on it, update-grub reports
/sbin/grub-probe: error: unknown filesystem.
Found Ubuntu 22.04.1 LTS on /dev/mapper/
and
/sbin/grub-probe: error: disk `lvmid/
Found Ubuntu 22.04.1 LTS (22.04) on /dev/mapper/
and leaves the systems mounted rw on /var/lib/
On subsequent invocations update-grub spews out multiple
mdir: failed to remove '/var/lib/
I'm pretty sure this also causes a new install to hang (though a power-reset seems to load the new system - not sure if it is complete or not.)
The missing umounts should be relatively easy to fix, but the thick snapshot error is particularly vague as most users (I think) would take the "unknown filesystem" to refer to the previous entry.
I have been playing with grub2-common-
description: | updated |
tags: | added: fr-2650 |
tags: | removed: fr-2650 rls-kk-incoming |
tags: | added: fr-2650 |
Changed in os-prober (Ubuntu Kinetic): | |
importance: | Undecided → Medium |
I've seen various issues with os-prober where it hangs when trying to mount snapshots. I thought we made it skip them all. Sigh.
I'm not sure it is missing unmounts vs having no success unmounting it as the mount point is kept busy by some other process.