software raid component drives erroneously detected

Bug #905607 reported by John Ryan
32
This bug affects 4 people
Affects Status Importance Assigned to Milestone
os-prober (Ubuntu)
Fix Released
Medium
Colin Watson

Bug Description

Recent versions of os-prober have been erroneously reporting the component drives of a software (mdadm) array which results in grub2 adding boot entries for these drives. For example, my / filesystem is mounted on /dev/md0 and /proc/mdstat contains:

md0 : active raid1 sdb1[1] sda1[0]
      24000960 blocks [2/2] [UU]

Running os-prober reports:

/dev/sda1:Ubuntu 11.10 (11.10):Ubuntu:linux
/dev/sdb1:Ubuntu 11.10 (11.10):Ubuntu2:linux

The problem is a missing backslash on line 84 of /usr/bin/os-prober which reads:

"dev="${word%%[*}"

and should instead read:

dev="${word%%\[*}"

I have confirmed that this bug is present in Ubuntu Oneiric and Precise.

John

Tags: patch

Related branches

Revision history for this message
John Ryan (johnryannz) wrote :
tags: added: patch
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "os-prober-mdadm.patch" of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-reviewers team please also unsubscribe the team from this bug report.

[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in os-prober (Ubuntu):
status: New → Confirmed
Revision history for this message
Matthias Andree (matthias-andree) wrote :

I am having the same problem, and the patch solves the problem for me on precise. Please upgrade the os-prober package.

Revision history for this message
Phillip Susi (psusi) wrote :

Just found this myself then thought to search for an existing bug report..

Changed in os-prober (Ubuntu):
importance: Undecided → Medium
status: Confirmed → Triaged
Revision history for this message
Colin Watson (cjwatson) wrote :

Thanks! Committed upstream.

Changed in os-prober (Ubuntu):
assignee: nobody → Colin Watson (cjwatson)
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

---------------
os-prober (1.61ubuntu1) saucy; urgency=low

  * Resynchronise with Debian. 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.

os-prober (1.61) unstable; urgency=low

  * Add an extra backslash to the code in parse_proc_mdstat to remove [...],
    so that it works properly in dash (thanks, John Ryan; LP: #905607).

os-prober (1.60) unstable; urgency=low

  * os-probes/mounted/x86/05efi: Handle the case where we used grub-mount to
    mount the EFI System Partition.
 -- Colin Watson <email address hidden> Tue, 21 May 2013 23:03:55 +0100

Changed in os-prober (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
malheum (maxheise) wrote :

Linux Mint Debian Up6 is also affected by this bug. However I could not mark LMDE as being affected, so I filed a new bug against Linux Mint.

The new bug report against LMDE is here
https://bugs.launchpad.net/linuxmint/+bug/1196896

For me the suggested solution to change "dev="${word%%[*}" to dev="${word%%\[*}" also worked in Linux Mint LMDE UP6.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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