Fix few bugs and memory leaks

This commit is contained in:
Vladimir 'phcoder' Serbinenko 2011-12-23 19:25:24 +01:00
parent 17785932df
commit 2980502850
5 changed files with 75 additions and 33 deletions

View file

@ -149,7 +149,7 @@ prepare_grub_to_access_device ()
echo "set root='`"${grub_probe}" --device "${device}" --target=compatibility_hint`'"
if fs_uuid="`"${grub_probe}" --device "${device}" --target=fs_uuid 2> /dev/null`" ; then
hints="`"${grub_probe}" --device "${device}" --target=hints_string 2> /dev/null`"
echo "if [ x$feature_platform_search_hint = xy ]; then"
echo "if [ x\$feature_platform_search_hint = xy ]; then"
echo " search --no-floppy --fs-uuid --set=root ${hints} ${fs_uuid}"
echo "else"
echo " search --no-floppy --fs-uuid --set=root ${fs_uuid}"