From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1K25Gm-0007l4-Pb for mharc-grub-devel@gnu.org; Fri, 30 May 2008 10:07:48 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K25Gl-0007ke-Mo for grub-devel@gnu.org; Fri, 30 May 2008 10:07:47 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K25Gk-0007k8-2g for grub-devel@gnu.org; Fri, 30 May 2008 10:07:47 -0400 Received: from [199.232.76.173] (port=32878 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K25Gj-0007k1-If for grub-devel@gnu.org; Fri, 30 May 2008 10:07:45 -0400 Received: from aybabtu.com ([69.60.117.155]:32833) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1K25Gj-0005R0-6x for grub-devel@gnu.org; Fri, 30 May 2008 10:07:45 -0400 Received: from [192.168.10.10] (helo=thorin) by aybabtu.com with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1K25GH-0003IO-G3 for grub-devel@gnu.org; Fri, 30 May 2008 16:07:17 +0200 Received: from rmh by thorin with local (Exim 4.63) (envelope-from ) id 1K25GY-0000tG-7y for grub-devel@gnu.org; Fri, 30 May 2008 16:07:34 +0200 Date: Fri, 30 May 2008 16:07:34 +0200 From: Robert Millan To: The development of GRUB 2 Message-ID: <20080530140734.GA3184@thorin> References: <20080529151336.GA6158@thorin> <20080529181709.GA26058@thorin> <20080530104115.GA21035@thorin> <20080530131453.GA962@thorin> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Organization: free as in freedom X-Message-Flag: Worried about Outlook viruses? Switch to Thunderbird! www.mozilla.com/thunderbird X-Debbugs-No-Ack: true User-Agent: Mutt/1.5.13 (2006-08-11) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. Subject: Re: [PATCH] UUID support 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: Fri, 30 May 2008 14:07:48 -0000 On Fri, May 30, 2008 at 09:26:05PM +0800, Bean wrote: > > > > However, a problem with this is that it only works for i386-pc, untill we > > define a way to store this for each variant. > > > > Perhaps we could instead use memdisk to store it? Rather than put a grub.cfg > > in memdisk, which would require builtin normal.mod, we could put a simpler > > file (let's call it 'env') with initial environment, in the binary format > > you describe. Does that work? > > > > Then to support it in other platforms, we just need to implement memdisk in > > them. > > We can use some function like grub_machine_get_env to return a pointer > to the environment block, and parse it in main.c. The env block is > string base, it can be used in any platform. Sounds fine. > BTW, since you have changed the filesystem structure, you need to add > the uuid member to other fs modules as well, otherwise it will cause > compile error. Optional struct members are allowed (at least by gcc). I think we have many incomplete struct declarations throurough the code. -- Robert Millan I know my rights; I want my phone call! What good is a phone call… if you are unable to speak? (as seen on /.)