blast --fs-uuid)
/etc/defaults/grub uncommented the line:
GRUB_DISABLE_LINUX_UUID=true
/usr/share/grub/grub-mkconfig_lib :
# If there's a filesystem UUID that GRUB is capable of identifying, use it;
# otherwise set root as per value in device.map.
fs_hint="`"${grub_probe}" --device $@ --target=compatibility_hint`"
if [ "x$fs_hint" != x ]; then
echo "set root='$fs_hint'"
fi
if fs_uuid="`"${grub_probe}" --device $@ --target=fs_uuid 2> /dev/null`" ; then
hints="`"${grub_probe}" --device $@ --target=hints_string 2> /dev/null`" || hints=
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}"
echo "fi"
fi
IFS="$old_ifs"
and changed the following lines:
if fs_uuid="`"${grub_probe}" --device $@ --target=fs_label 2> /dev/null`" ; then
echo " search --no-floppy --label --set=root ${hints} ${fs_uuid}"
echo " search --no-floppy --label --set=root ${fs_uuid}"
run update2-grub --output=/boot/grub2/grub.cfg
Tuesday, November 17, 2015
grub2 follies
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment