os-prober fails to recognize linux installations with crypted root partition
Bug #530252 reported by
Josef Wolf
This bug affects 2 people
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| os-prober (Ubuntu) |
Won't Fix
|
Undecided
|
Unassigned | ||
Bug Description
Binary package hint: os-prober
On Karmic, os-prober fails to recognize linux installations with LUKS crypted root partition (which is pretty common on laptops nowadays).
linux-boot-prober at least finds partitions when they are luksOpen'ed, but /usr/lib/
ProblemType: Bug
Architecture: i386
Date: Mon Mar 1 19:58:15 2010
DistroRelease: Ubuntu 9.10
Package: os-prober 1.35
ProcEnviron:
LANG=de_DE.UTF-8
SHELL=/bin/bash
ProcVersionSign
SourcePackage: os-prober
Uname: Linux 2.6.31-19-generic i686
Related branches
~nwg/ubuntu/+source/os-prober:scan-luks-partitions
- Robie Basak: Disapprove
- Ubuntu Sponsors: Pending requested
-
Diff: 20 lines (+9/-0)1 file modifiedos-prober (+9/-0)
| tags: | added: rls-jj-incoming |
To post a comment you must log in.

This is still a problem for me on jammy jellyfish.
I found an older debian bug #801769 which addresses the issue not by modifying the mounted check (now in /lib/os- probes/ 50mounted- tests) but by simply adding entries from /dev/mapper/* to to the partitions() list in the main os-prober script.
The attached patch (attached both to the debian bug report and here) worked for me on jammy. It requires luks partitions to be unlocked but not mounted.