[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] grub-setup: make it possible to specify the root device
From: |
Arnout Vandecappelle |
Subject: |
Re: [PATCH] grub-setup: make it possible to specify the root device |
Date: |
Thu, 06 Sep 2012 19:42:18 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:10.0.6esrpre) Gecko/20120817 Icedove/10.0.6 |
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