#563061 grub-pc: search for uuid fails on boot

Package:
grub-pc
Source:
grub2
Description:
GRand Unified Bootloader, version 2 (PC/BIOS version)
Submitter:
Date:
2012-12-29 17:54:03 UTC
Severity:
important
#563061#5
Date:
2009-12-30 13:42:17 UTC
From:
To:
When booting up with the line
	search --no-floppy --fs-uuid --set e517508a-0581-4334-a5ab-ae1003c16a28
in place the system halts, when removing the search line the system
boots fine.
The UUID is from the /boot partion:
	$  grub-probe -t fs_uuid -d /dev/hda1
	e517508a-0581-4334-a5ab-ae1003c16a28

#563061#10
Date:
2012-08-29 14:53:42 UTC
From:
To:
exactly the same problem here, there's apparently no other way to
disable this stupid line than commenting out lines 129-132 in
/usr/lib/grub-mkconfig_lib

I have no idea why this line makes the boot fail.

#563061#15
Date:
2012-12-29 17:42:51 UTC
From:
To:
Hello Thibaut,

Even in that code that you comment out it is using the probe to find the
uuid. If it finds the uuid i wonder why setting it can not find the uuid.

less -N /usr/lib/grub/grub-mkconfig_lib

    127   # If there's a filesystem UUID that GRUB is capable of
identifying, use it;
    128   # otherwise set root as per value in device.map.
    129   echo "set root='`${grub_probe} --device ${device}
--target=drive`'"
    130   if fs_uuid="`${grub_probe} --device ${device} --target=fs_uuid 2>
/dev/null`" ; then
    131     echo "search --no-floppy --fs-uuid --set ${fs_uuid}"
    132   fi