From ebf77d4fdd8860c3e9770123f3361491d56c146f Mon Sep 17 00:00:00 2001 From: Michael Marineau Date: Mon, 15 Dec 2014 02:22:42 +0000 Subject: [PATCH] grub: search for OEM by partition label instead of filesystem label Probing all filesystem types on all block devices appears to hang booting Amazon EC2 HVM instances. The console output is unreliably buffered so there is no information on what the failure actually is. On the up side we can work around it easily by only searching the GPT which appears to be safe. --- build_library/grub.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build_library/grub.cfg b/build_library/grub.cfg index 768330e9aa..7f5cb12869 100644 --- a/build_library/grub.cfg +++ b/build_library/grub.cfg @@ -17,7 +17,7 @@ set linux_append="" # Search for the OEM partition, load additional configuration if found. -search --no-floppy --set oem --label OEM --hint "$root" +search --no-floppy --set oem --part-label OEM --hint "$root" if [ -n "$oem" -a -f "($oem)/grub.cfg" ]; then source "($oem)/grub.cfg" fi