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.
This commit is contained in:
Michael Marineau 2014-12-15 02:22:42 +00:00
parent 7346dc1caa
commit ebf77d4fdd

View File

@ -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