From a109bb6d0eb936ac4e2a9f0ee46a269a58ec48ce Mon Sep 17 00:00:00 2001 From: root Date: Fri, 16 Nov 2012 11:52:02 +0000 Subject: fish --- master/debian/efi_disk_cache.patch | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 master/debian/efi_disk_cache.patch (limited to 'master/debian/efi_disk_cache.patch') diff --git a/master/debian/efi_disk_cache.patch b/master/debian/efi_disk_cache.patch new file mode 100644 index 0000000..478e144 --- /dev/null +++ b/master/debian/efi_disk_cache.patch @@ -0,0 +1,26 @@ +Description: Bump the values of GRUB_DISK_CACHE_SIZE and GRUB_DISK_CACHE_BITS + on EFI systems (and only on EFI sytems) to dramatically reduce the load times + for vmlinux and initrd. Forwarding this isn't required as upstream trunk + has completely rewritten how this all works. +Author: Adam Conrad +Origin: other, http://blog.fpmurphy.com/2010/03/grub2-efi-support.html +Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/944347 +Forwarded: not-needed +Last-Update: 2012-03-05 + +Index: b/include/grub/disk.h +=================================================================== +--- a/include/grub/disk.h ++++ b/include/grub/disk.h +@@ -137,7 +137,11 @@ + + /* The size of a disk cache in 512B units. Must be at least as big as the + largest supported sector size, currently 16K. */ ++#ifdef GRUB_MACHINE_EFI ++#define GRUB_DISK_CACHE_BITS 10 ++#else + #define GRUB_DISK_CACHE_BITS 6 ++#endif + #define GRUB_DISK_CACHE_SIZE (1 << GRUB_DISK_CACHE_BITS) + + /* Return value of grub_disk_get_size() in case disk size is unknown. */ -- cgit v1.2.3