[lkml]   [2012]   [Feb]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: No /dev/root with devtmpfs?
    --- On Fri, 10/2/12, Kirill Smelkov <> 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    [W:0.020 / U:10.380 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site