Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MYejb-00059G-Oz for mharc-grub-devel@gnu.org; Wed, 05 Aug 2009 07:32:43 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MYejZ-00057b-VD for grub-devel@gnu.org; Wed, 05 Aug 2009 07:32:42 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MYejU-00054z-L9 for grub-devel@gnu.org; Wed, 05 Aug 2009 07:32:40 -0400 Received: from [199.232.76.173] (port=40034 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MYejU-00054w-FB for grub-devel@gnu.org; Wed, 05 Aug 2009 07:32:36 -0400 Received: from sca-es-mail-2.sun.com ([192.18.43.133]:33344) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1MYejT-00019U-Gi for grub-devel@gnu.org; Wed, 05 Aug 2009 07:32:35 -0400 Received: from fe-sfbay-10.sun.com ([192.18.43.129]) by sca-es-mail-2.sun.com (8.13.7+Sun/8.12.9) with ESMTP id n75BWXkj008270 for ; Wed, 5 Aug 2009 04:32:33 -0700 (PDT) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: TEXT/PLAIN; CHARSET=US-ASCII; format=flowed Received: from conversion-daemon.fe-sfbay-10.sun.com by fe-sfbay-10.sun.com (Sun Java(tm) System Messaging Server 7u2-7.02 64bit (built Apr 16 2009)) id <0KNW00200ILLQL00@fe-sfbay-10.sun.com> for grub-devel@gnu.org; Wed, 05 Aug 2009 04:32:33 -0700 (PDT) Received: from kasha ([unknown] [10.1.48.74]) by fe-sfbay-10.sun.com (Sun Java(tm) System Messaging Server 7u2-7.02 64bit (built Apr 16 2009)) with ESMTPSA id <0KNW00FBQIQ9B250@fe-sfbay-10.sun.com> for grub-devel@gnu.org; Wed, 05 Aug 2009 04:32:33 -0700 (PDT) Date: Wed, 05 Aug 2009 04:31:06 -0700 (PDT) From: Seth Goldberg Sender: Seth.Goldberg@Sun.COM X-X-Sender: sethg@"bergsoft.West.Sun.COM." To: grub-devel@gnu.org Message-id: User-Agent: Alpine 2.00 (GSO 1167 2008-08-23) X-detected-operating-system: by monty-python.gnu.org: Solaris 10 (beta) Subject: Re: i386/pc/grub-setup.c question X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Aug 2009 11:32:42 -0000 > 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. --S