#648251 A patch to add support for distributions installed on MD Raid devices

Package:
os-prober
Source:
os-prober
Description:
utility to detect other OSes on a set of drives
Submitter:
Hedayat Vatankhah
Date:
2021-12-02 18:33:03 UTC
Severity:
normal
#648251#5
Date:
2011-11-09 22:59:44 UTC
From:
To:
Version: 1.48


This bug is about the bug reported in [1] and the provided patch. This
patch is expected to provide support for distributions installed on
mdraid devices. Please review the patch and apply if appropriate.


Thanks

[1] https://bugzilla.redhat.com/show_bug.cgi?id=752402

#648251#10
Date:
2011-11-10 05:05:12 UTC
From:
To:
On 10.11.2011 02:59, Hedayat Vatankhah wrote:

Just a small nitpick:

  awk '/^md/ {printf "/dev/"$1"\n"}' /proc/mdstat

Thanks,

/mjt

#648251#15
Date:
2012-04-13 22:28:42 UTC
From:
To:
Hi,

...or little bit more easy(?):

[ -f /proc/mdstat ] && sed -e 's,^\(md[0-9]\+\).*$,/dev/\1,p;d' /proc/mdstat

#648251#20
Date:
2012-04-29 20:08:48 UTC
From:
To:
Thanks for the cleanups. Anyway, is there any problems with the fix?
#648251#25
Date:
2014-02-20 04:09:02 UTC
From:
To:
Dear Maintainer,

   * What led up to the situation?
I have Fedora installed on /dev/md5(RAID1) but update-grub / os-prober didn't found it.

   * What exactly did you do (or not do) that was effective (or
     ineffective)?
Implementing the patch from this bugreport was effective.

   * What was the outcome of this action?
Linux on md device could not be started.

   * What outcome did you expect instead?
Correct detection and starting of other Distribution on md.

BTW:
The following System Information was not correctly detected or the wiki is outdated.
As described on https://wiki.debian.org/AptPreferences I have created /etc/apt/preferences:
Package: *
 Pin: release n=stable
 Pin-Priority: 900

Package: *
 Pin: release n=testing
 Pin-Priority: 800

#648251#30
Date:
2017-08-30 09:41:52 UTC
From:
To:
Dear Manitainer,

Please consider applying the patch which helps a lot with maintaining
debian machines with root on md raid when rebuilding grub configuration.

Thanks a lot,

Pavel Hofman.

#648251#35
Date:
2021-08-18 13:10:41 UTC
From:
To:
The problem still exists in os-prober 1.79, and I've confirmed that the
patch still applies and solves the problem. Could this (or an
equivalent) be applied for the next version?

#648251#40
Date:
2021-12-02 18:30:40 UTC
From:
To:
#648251: A patch to add support for distributions installed on MD Raid devices


Eduardo M KALINOWSKI <eduardo@kalinowski.com.br> wrote (Wed, 18 Aug 2021 10:10:41 -0300):

Any objections against me applying this?


Holger