21e200f1726782a896a739c3091bcb6f06749ef7
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / boot / grub / grub.200-fix_mbr_handling.patch
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      {