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

Bug #1987386 reported by Olivier Gayot
6
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

Olivier Gayot (ogayot)
description: updated
Changed in os-prober (Ubuntu):
assignee: nobody → Olivier Gayot (ogayot)
status: New → In Progress
Revision history for this message
Olivier Gayot (ogayot) wrote (last edit ):

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 and Windows 10.

Revision history for this message
Olivier Gayot (ogayot) wrote (last edit ):

Adding debdiff from the old Ubuntu release

Revision history for this message
Olivier Gayot (ogayot) wrote :

Adding debdiff from the Debian release.

Revision history for this message
Olivier Gayot (ogayot) wrote :
Changed in os-prober (Ubuntu):
assignee: Olivier Gayot (ogayot) → nobody
status: In Progress → Confirmed
Revision history for this message
Olivier Gayot (ogayot) wrote :

Note about the following dropped change:

    - Sort detected kernels by modification time, if possible.

The new version sorts the kernels by reverse natural number order ; instead of modification time.
There is no guarantee that the order will be preserved after upgrading os-prober. However, tor the most common scenarios, it should have no impact. I tested with the data from the original LP bug: https://bugs.launchpad.net/ubuntu/+source/os-prober/+bug/1317153 and the kernels are listed in the expected order.

Relying on the name of the file (and therefore parsing the version number) feels more solid than relying on the modification time.

Revision history for this message
Lukas Märdian (slyon) wrote :

thanks, LGTM. I've only added a reference to this LP bug into your FIXME comment, to provide more context for future readers.

Lukas Märdian (slyon)
Changed in os-prober (Ubuntu):
status: Confirmed → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package os-prober - 1.81ubuntu1

---------------
os-prober (1.81ubuntu1) kinetic; urgency=low

  * Merge from Debian unstable (LP: #1987386). Remaining changes:
    - Mount btrfs subvolume @ when present to access a btrfs formatted
      rootfs.
    - When called with WINOSDATA, return the list of Windows partitions
      containing the system instead of only listing these containing the
      bootrecord. Add Windows10 detection.
    - Stop building the udeb on request.
  * Dropped changes, superseded in Debian:
    - Sort detected kernels by modification time, if possible.
      => Kernels are now sorted by - reverse - natural number order (see
         option -v of ls).
  * Added FIXME tag mentioning that Windows 11 system partitions are detected
    as Windows 10 when os-prober is called with WINOSDATA

os-prober (1.81) unstable; urgency=medium

  * Team upload

  [ Pascal Hambourg ]
  * Add Windows 11 detection.

os-prober (1.80) unstable; urgency=medium

  * Team upload

  [ Samuel Thibault ]
  * control: Enable mount dependency only on linux, enable freebsd-utils on
    kfreebsd instead. (Closes: #1006590)

  [ General Chaos ]
  * Handle multiple initrd paths, as used in some distros

  [ Gaël PORTAY ]
  * Fix "os-prober: call dmraid -r *once*".

  [ Timo Gurr ]
  * Add Exherbo Linux detection (Closes: #755804)

  [ Pascal Hambourg ]
  * Sort Linux kernels in reverse version order if no boot loader config file
    found (Closes: #741889)

  [ Sergei Galkin ]
  * Add ntfs3 for 5.15 kernel.

  [ rakslice ]
  * detect alpine initramfs files

  [ Luke Shumaker ]
  * Fall back to looking for /usr/lib/os-release.

  [ Debian Janitor ]
  * Bump debhelper from deprecated 9 to 13.
  * Set debhelper-compat version in Build-Depends.
  * Remove constraints unnecessary since buster:
    + Build-Depends: Drop versioned constraint on dpkg-dev.
    + os-prober-udeb: Drop versioned constraint on anna in Depends.

 -- Olivier Gayot <email address hidden> Tue, 23 Aug 2022 12:16:39 +0200

Changed in os-prober (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.