Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1J5vyR-0003tq-76 for mharc-grub-devel@gnu.org; Fri, 21 Dec 2007 23:28:31 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J5vyP-0003sj-Ir for grub-devel@gnu.org; Fri, 21 Dec 2007 23:28:29 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J5vyN-0003rI-WE for grub-devel@gnu.org; Fri, 21 Dec 2007 23:28:28 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J5vyN-0003r3-Nr for grub-devel@gnu.org; Fri, 21 Dec 2007 23:28:27 -0500 Received: from py-out-1112.google.com ([64.233.166.178]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1J5vyN-00073j-Gg for grub-devel@gnu.org; Fri, 21 Dec 2007 23:28:27 -0500 Received: by py-out-1112.google.com with SMTP id a73so1525337pye.14 for ; Fri, 21 Dec 2007 20:28:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=L0Ufkn6GvmS0LRMTtWAgOvbYzi9gEEICZ9TR9fHp0HA=; b=Ih3bkx1Q6BQQfq9mf8aQBNgHtcgc4YMMOoMMHS/2Y9k/wVkPkXS6ioGuF3cD6wy/kofHltA3lAoPUabsyHu46Q8Tiot0wncc7N+Z9ITNa9o3c0fEFjHHheREzKwDz/jrNJZM1SJLynRkAGswZgHyFaKsB+8J6nm2BI473wBfYSo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=SG06DwU38QwteaaF7L+dAFkMBaDVLCTSwHODmYJrytHq/CiWwBdyKBKEgIPXSi8LPpyMwoL22yWUfOEFZGE+RxXkEB4vy3t0qGVCM1jf67NJfrmq2LHHzDyh81PXba1htXqOL3iOVeKgsOSHC2BuQaunHtTV1rv/vGNpfE7bbJM= Received: by 10.35.32.3 with SMTP id k3mr2284222pyj.18.1198297706264; Fri, 21 Dec 2007 20:28:26 -0800 (PST) Received: by 10.35.76.20 with HTTP; Fri, 21 Dec 2007 20:28:26 -0800 (PST) Message-ID: Date: Sat, 22 Dec 2007 12:28:26 +0800 From: Bean To: "The development of GRUB 2" In-Reply-To: <20071221205431.GA31264@thorin> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20071216153046.GA11912@thorin> <87prx5nwd5.fsf@xs4all.nl> <1197915991.2541.3.camel@dv> <20071220173607.GA20508@thorin> <8763ysyoyf.fsf@xs4all.nl> <20071221180405.GA14997@thorin> <20071221205431.GA31264@thorin> X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) Subject: Re: embedding filesystems in core image (Re: moving ata initialisation to a command) 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: Sat, 22 Dec 2007 04:28:29 -0000 On Dec 22, 2007 4:54 AM, Robert Millan wrote: > On Fri, Dec 21, 2007 at 07:04:05PM +0100, Robert Millan wrote: > > > > > > > > I'd prefer to support embedding filesystems in core.img instead. This > > > > solves the problem for every situation instead of just PC boot media > > > > (e.g. LinuxBIOS ELF payload image). > > > > > > Agreed, I would like to see such feature. Also for stuff like > > > diskless boot. > > > > > > What I had in mind was the following. We could perhaps make it > > > possible to add all files using grub-mkimage, not only modules. When > > > you add modules, those will be loaded automatically. All other files > > > will be ignored. > > > > > > Another filesystem module has to be written. It scans over these > > > files and will make them available. This can be simple and elegant. > > > I do not like the idea of adding a diskimage or so. Are you > > > interested in working on this? > > > > Well, I already have an almost-working implementation. I guess I'll have to > > defend it then! :-P > > > > Really, it's clean and elegant. Very simple and flexible. Once I get the > > address detection right, that is.. > > Please have a look at the attached patch. This allows adding an arbitrary > number of files. No extra filesystem module is needed, since any of the > supported filesystems can be used with this feature: > > genisoimage -o filesystem_image -r stuff > grub-mkimage -o core.img -m filesystem_image > Yes, i think this concept is great, and i just think of an improvement for the module. we can add support for a raw file system which store files compactly, so that very little space is wasted on file system structure, for example, this is a possible implementation: OFFSET_TO_NEXT_ITEM FILE1_NAME_LEN FILE1_NAME FILE1_DATA OFFSET_TO_NEXT_ITEM FILE2_NAME_LEN FILE2_NAME FILE2_DATA This is useful in situation where the size of core.img is limited, like bootrom. -- Bean