Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1JHKts-0003HN-DV for mharc-grub-devel@gnu.org; Tue, 22 Jan 2008 10:18:56 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JHKtq-0003Gu-9S for grub-devel@gnu.org; Tue, 22 Jan 2008 10:18:54 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JHKtk-0003FF-5p for grub-devel@gnu.org; Tue, 22 Jan 2008 10:18:52 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JHKtk-0003FC-0r for grub-devel@gnu.org; Tue, 22 Jan 2008 10:18:48 -0500 Received: from aybabtu.com ([69.60.117.155]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JHKtg-0003b4-L8; Tue, 22 Jan 2008 10:18:44 -0500 Received: from [192.168.10.6] (helo=thorin) by aybabtu.com with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1JHKtd-0002m3-1z; Tue, 22 Jan 2008 16:18:42 +0100 Received: from rmh by thorin with local (Exim 4.63) (envelope-from ) id 1JHKs1-0003cK-7c; Tue, 22 Jan 2008 16:17:01 +0100 Date: Tue, 22 Jan 2008 16:17:01 +0100 From: Robert Millan To: Pavel Roskin Message-ID: <20080122151701.GB13487@thorin> References: <20080121165209.GA2557@thorin> <1200937626.4686.17.camel@dv> <20080121210641.GC15119@thorin> <1200967864.32578.52.camel@dv> <20080122140251.GB11484@thorin> <20080122095543.tou1iwfz5woc08c4@webmail.spamcop.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20080122095543.tou1iwfz5woc08c4@webmail.spamcop.net> 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. Cc: The development of GRUB 2 Subject: Re: [PATCH] memdisk + grub-mkrescue 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: Tue, 22 Jan 2008 15:18:54 -0000 On Tue, Jan 22, 2008 at 09:55:43AM -0500, Pavel Roskin wrote: > >On Mon, Jan 21, 2008 at 09:11:04PM -0500, Pavel Roskin wrote: > >> > >>I wish I could use it on PowerPC to work around the "claim failed" > >>problem, but I'll still need to link "memdisk" and "cpio" with > >>grub-mkimage. > > > >I don't understand. How would this work around the problem? > > It would work around the problem if appending modules to kernel.elf > with grub-mkimage could be completely avoided. Ah, I see. But as you point out, you still need memdisk and cpio. Maybe we could put these two in kernel when we have "grub-mkimage -m" support for ELF, but it looks very ugly to me! :-) > >>I have a patch for PowerPC, but I think I'll hold it until your patch is > >>committed. I could change my patch to be more in-sync with i386, in > >>particular use /boot/grub as the blessed directory. > > > >Cool! Could you send it to the list? I'd like to see if it'll work on > >i386-elf targets. > > OK, attached. Sorry, this mailer would break the patch otherwise. Ah, I think I missunderstood. I thought you implemented "grub-mkimage -m" switch. > +# Make GRUB rescue image > +# Copyright (C) 1999,2000,2001,2002,2003,2004,2005,2006,2007 Free Software Foundation, Inc. Missing 2008 here. > +map_file=`mktemp` > +cat >${map_file} < +# EXTN XLate CREATOR TYPE Comment > +grub.img Raw 'UNIX' 'tbxi' "bootstrap" > +EOF How standard is this format? Is this targetted only at one OFW vendor? > +genisoimage -hfs -part -no-desktop -r -J -o ${output_image} \ > + -map ${map_file} -hfs-bless ${boot_dir} ${iso_dir} Same here. Perhaps this should be mentioned in --help or something? In the future we could add --image-type= options for other platforms like i386-pc does with floppy/cdrom ? -- Robert Millan I know my rights; I want my phone call! What use is a phone call… if you are unable to speak? (as seen on /.)