lkml.org 
[lkml]   [2013]   [Feb]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] init: fix name of root device in /proc/mounts
On Thu, Jan 31, 2013 at 03:22:09PM -0800, H. Peter Anvin wrote:
> On 01/31/2013 02:51 PM, William Hubbs wrote:
> > On a system that does not use an initramfs, /dev/root was always
> > listed in /proc/mounts. This breaks software which scans /proc/mounts to
> > determine which file systems are mounted since /dev/root is not a valid
> > device name.
> >
> > This changes that processing so that "/dev/root" is only added to
> > /proc/mounts if a root device is not specified with the root= option on
> > the kernel command line.
> >
> > Signed-off-by: William Hubbs <w.d.hubbs@gmail.com>
>
> Let me also point out that most of the time, the kernel actually has a
> udev device name for an actual device...

I'm not sure what you mean. If you mean /dev/root is not an actual
device and should not be listed in /proc/mounts, that is correct and
that is why I am proposing this patch.

William

[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2013-02-01 19:01    [W:0.128 / U:0.040 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site