* util/grub-probe.c (probe): Canonicalise the path argument, fixing
use of "/path/.." as in grub-install for EFI as well as handling symlinks correctly. Fixes Debian bug #637768.
This commit is contained in:
parent
5f60ccac6f
commit
828bc390d8
2 changed files with 12 additions and 1 deletions
|
@ -180,7 +180,10 @@ probe (const char *path, char *device_name)
|
|||
#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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue