grub.200-fix_mbr_handling.patch 448 B

12345678910111213
  1. Index: b/stage2/disk_io.c
  2. ===================================================================
  3. --- a/stage2/disk_io.c
  4. +++ b/stage2/disk_io.c
  5. @@ -365,7 +365,7 @@
  6. int
  7. devwrite (unsigned int sector, int sector_count, char *buf)
  8. {
  9. -#if defined(GRUB_UTIL) && defined(__linux__)
  10. +#if defined(GRUB_UTIL) && defined(__linux__) && !defined(SUPPORT_LOOPDEV)
  11. if (current_partition != 0xFFFFFF
  12. && is_disk_device (device_map, current_drive))
  13. {