[Top][All Lists]

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

Re: /proc/sys/kernel/real-root-dev

From: Juan Pedro Vallejo
Subject: Re: /proc/sys/kernel/real-root-dev
Date: Thu, 12 Dec 2002 23:15:44 +0100

On Thu, 12 Dec 2002 13:56:25 +1100, Andrew Clausen <address@hidden>

> This isn't quite true.  If there's no /dev/root in /proc/mount, it won't
> fail unconditionally.

Change the name of /proc/sys/kernel/real-root-dev to one that does not
exist, make, and execute parted with an argument ("parted /dev/hda").
Does the warning show now?.

> >     /* try first way */
> >     switch (_partition_is_root_device (path)) {
> >             case 1: return 1;       /* it is here */
> >             case 0: return 0;       /* it is not */
> Just because you know it isn't the root device doesn't mean you know
> it isn't mounted, right?

Right. The "case 0:" line should be deleted. I made the mistake I was
trying to fix.

Juan Pedro.

reply via email to

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