From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1T9shl-0004QG-PZ for mharc-grub-devel@gnu.org; Fri, 07 Sep 2012 03:10:17 -0400 Received: from eggs.gnu.org ([208.118.235.92]:56028) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T9she-0004P3-4k for grub-devel@gnu.org; Fri, 07 Sep 2012 03:10:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T9shc-0007K5-CX for grub-devel@gnu.org; Fri, 07 Sep 2012 03:10:10 -0400 Received: from 132.79-246-81.adsl-static.isp.belgacom.be ([81.246.79.132]:45636 helo=viper.mind.be) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T9shc-00076W-60 for grub-devel@gnu.org; Fri, 07 Sep 2012 03:10:08 -0400 Received: from [172.16.2.6] by viper.mind.be with esmtp (Exim 4.69) (envelope-from ) id 1T9shS-0001ZN-3m; Fri, 07 Sep 2012 09:10:00 +0200 Message-ID: <5048E07A.4080204@essensium.com> Date: Thu, 06 Sep 2012 19:42:18 +0200 From: Arnout Vandecappelle Organization: Essensium/Mind User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.6esrpre) Gecko/20120817 Icedove/10.0.6 MIME-Version: 1.0 To: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= Subject: Re: [PATCH] grub-setup: make it possible to specify the root device References: <1346769168-28089-1-git-send-email-arnout@mind.be> <50463187.1090303@gmail.com> <50464C0E.9010707@essensium.com> <5046DD63.4010700@gmail.com> In-Reply-To: <5046DD63.4010700@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 81.246.79.132 Cc: The development of GNU GRUB X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Sep 2012 07:10:16 -0000 On 09/05/12 07:04, Vladimir 'φ-coder/phcoder' Serbinenko wrote: > On 04.09.2012 20:44, Arnout Vandecappelle wrote: > [snip] >> I want to create an image file without superuser access. So I can't mount >> a loopback device, so the grub directory is not actually inside the image: >> it's the directory from which the target filesystem is created. >> >> If there's another way to do that, I'd be glad to hear it. >> > > grub-mkrescue Sorry, I should have set: I want to create an *ext4* image file. grub-mkrescue only makes an iso image and doesn't let me choose a partitioning. I did look at patching grub-mkrescue first, but that just relies on xorriso to do the heavy lifting so that doesn't help. Granted, I could just dd the grub image into the mbr, but I wasn't entirely sure how to do that and this patch was simpler. >> By the way, I'm also thinking about patching the build infrastructure >> to support building a cross-installer (e.g. grub-mkimage as an x86 >> executable >> but cross-compiling lib/grub/powerpc-ieee1275/*). Is there an interest for >> that? > > Long since done. It's also use for automated tests. Yeah, cool! I didn't know I had to supply TARGET_CC - some other configures use CC_FOR_BUILD - hence the confusion. Thanks! Regards, Arnout -- Arnout Vandecappelle arnout dot vandecappelle at essensium dot com Senior Embedded Software Architect . . +32-16-286540 . +32-478-010353 (mobile) Essensium, Mind division . . . . . . . . . . . . . . . . . http://www.mind.be G.Geenslaan 9, 3001 Leuven, Belgium . . . . . . . . BE 872 984 063 RPR Leuven LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle GPG fingerprint: 31BB CF53 8660 6F88 345D 54CC A836 5879 20D7 CF43