grub.200-fix_mbr_handling.patch 480 B

1234567891011
  1. --- grub-0.97.oorig/stage2/disk_io.c 2004-05-23 18:35:24.000000000 +0200
  2. +++ grub-0.97/stage2/disk_io.c 2006-03-12 14:11:51.000000000 +0100
  3. @@ -365,7 +365,7 @@ rawwrite (int drive, int sector, char *b
  4. int
  5. devwrite (int sector, int sector_count, char *buf)
  6. {
  7. -#if defined(GRUB_UTIL) && defined(__linux__)
  8. +#if defined(GRUB_UTIL) && defined(__linux__) && !defined(SUPPORT_LOOPDEV)
  9. if (current_partition != 0xFFFFFF
  10. && is_disk_device (device_map, current_drive))
  11. {