mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-23 23:59:22 +00:00
Fixes the situation with i386-pc where grub-probe & grub-setup are searching
for the root fs for grub files and they happen to be on the same file system
as the root ("/") filesystem.
This commit is contained in:
1 parent
801b76be69
commit
08db463226
2 files changed
+11
No files matched your search
@@ -192,6 +192,13 @@ find_root_device (const char *dir, dev_t dev)
|
||||
strip_extra_slashes (res);
|
||||
free (cwd);
|
||||
|
||||
/* /dev/root is not a real block device keep looking, takes care
|
||||
of situation where root filesystem is on the same partition as
|
||||
grub files */
|
||||
|
||||
if (strcmp(res, "/dev/root") == 0)
|
||||
continue;
|
||||
|
||||
if (chdir (saved_cwd) < 0)
|
||||
grub_util_error ("Cannot restore the original directory");
|
||||
|
||||
|
||||
Reference in new issue
Block a user