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:
jerone 2007-04-10 22:00:24 +00:00
parent 801b76be69
commit 08db463226
2 changed files with 11 additions and 0 deletions

View file

@ -1,3 +1,7 @@
2007-04-10 Jerone Young <jerone@gmail.com>
* util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
continue on and look for device node with real device name.
2007-04-10 Jerone Young <jerone@gmail.com> 2007-04-10 Jerone Young <jerone@gmail.com>
* configure.ac: Add argument for autoconf to use tranformation * configure.ac: Add argument for autoconf to use tranformation

View file

@ -192,6 +192,13 @@ find_root_device (const char *dir, dev_t dev)
strip_extra_slashes (res); strip_extra_slashes (res);
free (cwd); 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) if (chdir (saved_cwd) < 0)
grub_util_error ("Cannot restore the original directory"); grub_util_error ("Cannot restore the original directory");