[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Fix probing for root on i386-pc where grub files are on same

From: Jerone Young
Subject: Re: [PATCH] Fix probing for root on i386-pc where grub files are on same file system as root filesystem
Date: Sat, 17 Feb 2007 20:24:26 -0600

So on Fedora and other Redhat systems /dev/root is an actual device
node (in this case my root partition is sda1):

address@hidden grub2]# ls -l /dev/root
brw------- 1 root root 8, 1 Feb 17 13:11 /dev/root
address@hidden grub2]# ls -l /dev/sda1
brw-r----- 1 root disk 8, 1 Feb 17 13:12 /dev/sda1

The problem here is once grub sees this it has no idea what /dev/root
is so it cannot properly resolve it to /dev/sda1. So the best thing to
do is if you see /dev/root to just move on until you find the device
node with the real name.

Attached is the patch..along with a change log.

Signed-off-by: Jerone Young <address@hidden>

On 2/14/07, Jerone Young <address@hidden> wrote:
Interesting. I will try this again. I was working with I believe
fedora core 6. I noticed this was happening. It is not a symlink on
fedora core 6. This may have something to do with udev.

On 2/14/07, Yoshinori K. Okuji <address@hidden> wrote:
> On Monday 12 February 2007 08:42, Jerone Young wrote:
> > This patch fixes the situation with i386-pc where grub-probe &
> > grube-setup are searching for the root fs for grub files  and they
> > happen to be on the same file system as the root ("/") filesystem. If
> > this is the case if when probing /dev , if the partition is a sd* it
> > will not find it because it will find /dev/root first (this is a
> > mistake).
> I don't understand. In my system, /dev/root is a symlink, and find_root_device
> skips symlinks. Why does any problem happen?
> Thanks,
> Okuji
> _______________________________________________
> Grub-devel mailing list
> address@hidden

Attachment: grub2-root-probe-fix.patch
Description: Text Data

Attachment: ChangeLog.patch
Description: Text Data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]