mirror of
https://git.proxmox.com/git/grub2
synced 2025-08-08 04:47:14 +00:00
* Fix grub-probe detection for LSI MegaRAID SAS devices on kFreeBSD.
- kfreebsd_mfi_devices.diff
This commit is contained in:
parent
e16d14efd7
commit
9ca730e7cb
7
debian/changelog
vendored
7
debian/changelog
vendored
@ -1,3 +1,10 @@
|
|||||||
|
grub2 (1.99-12) UNRELEASED; urgency=low
|
||||||
|
|
||||||
|
* Fix grub-probe detection for LSI MegaRAID SAS devices on kFreeBSD.
|
||||||
|
- kfreebsd_mfi_devices.diff
|
||||||
|
|
||||||
|
-- Robert Millan <rmh@debian.org> Wed, 10 Aug 2011 22:34:10 +0200
|
||||||
|
|
||||||
grub2 (1.99-11) unstable; urgency=low
|
grub2 (1.99-11) unstable; urgency=low
|
||||||
|
|
||||||
* Backport from upstream:
|
* Backport from upstream:
|
||||||
|
35
debian/patches/kfreebsd_mfi_devices.diff
vendored
Normal file
35
debian/patches/kfreebsd_mfi_devices.diff
vendored
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
--- a/util/deviceiter.c
|
||||||
|
+++ b/util/deviceiter.c
|
||||||
|
@@ -298,6 +298,12 @@
|
||||||
|
{
|
||||||
|
sprintf (name, "/dev/ar%d", unit);
|
||||||
|
}
|
||||||
|
+
|
||||||
|
+static void
|
||||||
|
+get_mfi_disk_name (char *name, int unit)
|
||||||
|
+{
|
||||||
|
+ sprintf (name, "/dev/mfid%d", unit);
|
||||||
|
+}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef __linux__
|
||||||
|
@@ -658,6 +664,19 @@
|
||||||
|
if (check_device_readable_unique (name))
|
||||||
|
{
|
||||||
|
if (hook (name, 0))
|
||||||
|
+ goto out;
|
||||||
|
+ }
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+ /* LSI MegaRAID SAS. */
|
||||||
|
+ for (i = 0; i < 32; i++)
|
||||||
|
+ {
|
||||||
|
+ char name[20];
|
||||||
|
+
|
||||||
|
+ get_mfi_disk_name (name, i);
|
||||||
|
+ if (check_device_readable_unique (name))
|
||||||
|
+ {
|
||||||
|
+ if (hook (name, 0))
|
||||||
|
goto out;
|
||||||
|
}
|
||||||
|
}
|
1
debian/patches/series
vendored
1
debian/patches/series
vendored
@ -24,3 +24,4 @@ kfreebsd-9_ada_devices.patch
|
|||||||
gfxterm_background.patch
|
gfxterm_background.patch
|
||||||
zfs_packed_la_array.patch
|
zfs_packed_la_array.patch
|
||||||
xen_replace.patch
|
xen_replace.patch
|
||||||
|
kfreebsd_mfi_devices.diff
|
||||||
|
Loading…
Reference in New Issue
Block a user