summaryrefslogtreecommitdiffstats
path: root/boot/grub/grub.200-fix_mbr_handling.patch
blob: 21e200f1726782a896a739c3091bcb6f06749ef7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
Index: b/stage2/disk_io.c
===================================================================
--- a/stage2/disk_io.c
+++ b/stage2/disk_io.c
@@ -365,7 +365,7 @@
 int
 devwrite (unsigned int sector, int sector_count, char *buf)
 {
-#if defined(GRUB_UTIL) && defined(__linux__)
+#if defined(GRUB_UTIL) && defined(__linux__) && !defined(SUPPORT_LOOPDEV)
   if (current_partition != 0xFFFFFF
       && is_disk_device (device_map, current_drive))
     {
OpenPOWER on IntegriCloud