On 09/04/12 18:51, Vladimir 'φ-coder/phcoder' Serbinenko wrote:
On 04.09.2012 16:32, Arnout Vandecappelle (Essensium/Mind) wrote:
From: "Arnout Vandecappelle (Essensium/Mind)"<[email protected]>
When creating a bootable disk image in a file rather than on a physical
device, it is not possible to guess the root partition. Therefore,
allow the root partition to be specified on the command line.
Looks like you just do it wrong. Correct way is to create a loopback and
then use kpartx to discover partitions, not use loopback with offset.
This "root device" is purely technical information and it should be
discovered automatically from the information we already have (we have a
directory)
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.
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?
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