Description: Canonicalise path argument to grub-probe This fixes use of "/path/.." as in grub-install for EFI, as well as handling symlinks correctly. Author: Mario Limonciello Author: Colin Watson Bug-Debian: http://bugs.debian.org/637768 Forwarded: yes Applied-Upstream: http://bazaar.launchpad.net/~vcs-imports/grub/grub2-bzr/revision/3401 Last-Update: 2011-08-15 Index: b/util/grub-probe.c =================================================================== --- a/util/grub-probe.c +++ b/util/grub-probe.c @@ -108,7 +108,10 @@ #endif } else - device_name = grub_guess_root_device (path); + { + grub_path = canonicalize_file_name (path); + device_name = grub_guess_root_device (grub_path); + } if (! device_name) grub_util_error ("cannot find a device for %s (is /dev mounted?)", path);