grub-devel
[Top][All Lists]
Advanced

[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: Tue, 04 Sep 2012 20:44:30 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.6esrpre) Gecko/20120817 Icedove/10.0.6

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)"<address@hidden>

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]