Hi,
...or little bit more easy(?):
[ -f /proc/mdstat ] && sed -e 's,^\(md[0-9]\+\).*$,/dev/\1,p;d' /proc/mdstat
--
Best regards,
Andriy
0xBDDBDAE3
signature.asc
Description: Digital signature
On 10.11.2011 02:59, Hedayat Vatankhah wrote:
Just a small nitpick:
> + # Add MD RAID devices
> + if [ -f /proc/mdstat ] ; then
> + grep "^md" /proc/mdstat | awk '{printf "/dev/"$1"\n"}'
> + fi
awk '/^md/ {printf "/dev/"$1"\n"}' /proc/mdstat
Thanks,
/mjt
--
To UNSUBSCRIBE, ema
Package: os-prober
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
3 matches
Mail list logo