grub dependencies

Andrew Benton b3nton at
Sun Jun 12 14:21:47 PDT 2011

On Sun, 12 Jun 2011 10:42:26 -0500
Bruce Dubbs <bruce.dubbs at> wrote:
> I have a current SVN version on x86_64 for test.
> See
> I'll try out the patch, but it will be a few days.
> Another solution may be to do:
>    cd /dev
>    ln -sv <root partition> root

Oh that's interesting. I tried a filesystem called nilfs2 a year or 2
ago and it wouldn't work without a symlink in /dev pointing at the root
partition. To get it working properly I had to add this
to /etc/rc.d/init.d/mountfs

    # Get the root partition from the kernel command line.
    read -a kernel_options < /proc/cmdline

    # Now make the /dev/root symlink.
    for option in ${kernel_options[@]}
    do [[ ${option} =~ root.* ]] && ln -s ${option#root=/dev/} /dev/root

    unset option kernel_options

I don't use nilfs2 anymore but that code is still there making
the /dev/root symlink. Maybe that's why grub-1.99 works for me?

> Another problem is that the kernel only understands devices on the 
> command line, not an id as above.

Indeed. The code I added to /etc/rc.d/init.d/mountfs relies on the
actual root partition being given to the kernel by grub on the command


More information about the lfs-dev mailing list