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


_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to