lkml.org 
[lkml]   [2012]   [Feb]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: No /dev/root with devtmpfs?
--- On Fri, 10/2/12, Kirill Smelkov <kirr@mns.spb.ru> wrote:
> > Could you simply use /etc/fstab to identify the root
> partition?
> Unfortunately no, because /etc/fstab can't know where the
> card will be
> inserted to boot this time - i.e. either in compactflash
> slot on
> motherboard, or through usb via cardreader. So root has to
> be determined
> at runtime.
>
> Personally I'm ok with no /dev/root symlink as long as there
> is another
> way to detect root blkdev reliably. And I'm still confised
> what's the
> rationale about why this can't be done for modern
> filesysems.

Here's another suggestion: /proc/cmdline

The bootloader might pass the root partition to the kernel via the
"root=" kernel parameter; these can be read at /proc/cmdline.
For example, on an HP iPAQ hx4700: root=/dev/mtdblock2



\
 
 \ /
  Last update: 2012-02-10 14:13    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site