The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / boot / grub / grub.200-fix_mbr_handling.patch
diff --git a/cirros-testvm/src-cirros/buildroot-2015.05/boot/grub/grub.200-fix_mbr_handling.patch b/cirros-testvm/src-cirros/buildroot-2015.05/boot/grub/grub.200-fix_mbr_handling.patch
new file mode 100644 (file)
index 0000000..21e200f
--- /dev/null
@@ -0,0 +1,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))
+     {