[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: i386/pc/grub-setup.c question

From: Seth Goldberg
Subject: Re: i386/pc/grub-setup.c question
Date: Wed, 05 Aug 2009 04:31:06 -0700 (PDT)
User-agent: Alpine 2.00 (GSO 1167 2008-08-23)

main () sets the root device if it's not given.
grub_file_open doestn't need a device if a root device is set.
Else things like `set root=(hd0,1);linux /vmlnuz' wouldn't work either
in real grub.
It works as long as the path is relative to the root.
I.e. grub-install --root-directory=/mnt /dev/sda1 is currenctly broken
but without --root-directory= it works.

Thanks -- I neglected to look at the implementation of grub_device_open, which uses the root if the argument passed in is NULL.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]