On Sun, 12 Jun 2011 10:42:26 -0500
Bruce Dubbs <bruce.du...@gmail.com> wrote:
> I have a current SVN version on x86_64 for test.
> 
> See https://lists.gnu.org/archive/html/grub-devel/2011-06/msg00010.html
> 
> 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
    done

    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
line.

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to