[Bug 1987386] Re: Please merge os-prober 1.81 (main) from Debian unstable (main)

Olivier Gayot 1987386 at bugs.launchpad.net
Tue Aug 23 10:43:51 UTC 2022


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
"CurrentBuildNumber"="19044"

For now, I have added a FIXME to mention that we make no distinction
between Windows 11 Windows 10.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to os-prober in Ubuntu.
https://bugs.launchpad.net/bugs/1987386

Title:
  Please merge os-prober 1.81 (main) from Debian unstable (main)

Status in os-prober package in Ubuntu:
  Confirmed

Bug description:
  base: 1.79
  ubuntu: 1.79ubuntu2
  debian: 1.81

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/os-prober/+bug/1987386/+subscriptions




More information about the foundations-bugs mailing list