From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1KCv11-0006bj-An for mharc-grub-devel@gnu.org; Sun, 29 Jun 2008 07:24:19 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KCv0z-0006bD-KK for grub-devel@gnu.org; Sun, 29 Jun 2008 07:24:17 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KCv0y-0006aX-2M for grub-devel@gnu.org; Sun, 29 Jun 2008 07:24:17 -0400 Received: from [199.232.76.173] (port=37857 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KCv0x-0006aR-QU for grub-devel@gnu.org; Sun, 29 Jun 2008 07:24:15 -0400 Received: from aybabtu.com ([69.60.117.155]:44840) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KCv0x-0004xU-J1 for grub-devel@gnu.org; Sun, 29 Jun 2008 07:24:15 -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.69) (envelope-from ) id 1KCuxR-0000lW-28 for grub-devel@gnu.org; Sun, 29 Jun 2008 13:20:39 +0200 Received: from rmh by thorin with local (Exim 4.63) (envelope-from ) id 1KCuzR-0000cP-6h for grub-devel@gnu.org; Sun, 29 Jun 2008 13:22:41 +0200 Date: Sun, 29 Jun 2008 13:22:41 +0200 From: Robert Millan To: The development of GRUB 2 Message-ID: <20080629112241.GA2347@thorin> References: <20080619133147.GA5018@thorin> <485AA89A.5030404@isaac.cedarswampstudios.org> <20080621141907.GC24465@thorin> <1214058907.10018.39.camel@localhost> <20080626140836.GB7511@thorin> <1214493651.24653.10.camel@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1214493651.24653.10.camel@localhost> 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] add a counter in grub_dprintf 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: Sun, 29 Jun 2008 11:24:18 -0000 On Thu, Jun 26, 2008 at 05:20:51PM +0200, Javier Martín wrote: > El jue, 26-06-2008 a las 16:08 +0200, Robert Millan escribió: > > On Sat, Jun 21, 2008 at 04:35:07PM +0200, Javier Martín wrote: > > > > > > Why not modify the build system to create _two_ instances of kernel.img, > > > one with and another without debugging? grub_mkimage would create the > > > normal, smaller core.img (without dprintf) for installing and embedding; > > > and store a core_dbg.img in the /boot/grub folder, > > > > This breaks the design and forces grub-mkimage to have: > > > > a) knowledge about GRUB paths > > > > b) requirement for root perms > > > > instead of just being an utility to generate images. I don't think it's > > a good idea. > > > Whoops, sorry, I meant that grub_mkimage would create two core.img > images, one per kernel.img version, and then grub_install would copy > them as usual. Then grub_setup would embed/set up the normal core.img > or the debug version based on a switch. What I propose is basically > modifying grub_mkimage to allow choosing the kernel.img file used and > then adding some lines to grub_install so that the two versions of > core.img are generated (but only the selected is embedded). Ah; then it sounds fine, I guess. -- 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 /.)