Please merge os-prober 1.81 (main) from Debian unstable (main)
Bug #1987386 reported by
Olivier Gayot
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
os-prober (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
base: 1.79
ubuntu: 1.79ubuntu2
debian: 1.81
description: | updated |
Changed in os-prober (Ubuntu): | |
assignee: | nobody → Olivier Gayot (ogayot) |
status: | New → In Progress |
Changed in os-prober (Ubuntu): | |
status: | Confirmed → In Progress |
To post a comment you must log in.
Version 1.81 brings support for Windows 11 boot partitions.
In Ubuntu, when the variable WINOSDATA is set, we attempt to detect the Windows data partitions.
Windows 10 and Windows 11 have the same major version number. The "standard" way to make the distinction seems to be to compare the Windows build number:
major = 10, build number >= 22000 <- Windows 11
major = 10, build number < 22000 <- Windows 10
Unfortunately, the build number is not easily accessible. It is available in the HKLM/Software registry hive (i.e., Windows/ System32/ config/ SOFTWARE) .
Parsing this binary file properly would require adding a new dependency to os-prober. Multiple packages in the archive are able to parse this type of file, including libhivex-bin, but none of them are in main.
$ hivexget SOFTWARE 'Microsoft\Windows NT\CurrentVersion' | grep CurrentBuildNumber mber"=" 19044"
"CurrentBuildNu
For now, I have added a FIXME to mention that we make no distinction between Windows 11 and Windows 10.