[elbe-devel] Getting arbitrary files from a project using 'elbe initvm'

Torben Hohn torben.hohn at linutronix.de
Wed Mar 22 10:31:30 CET 2017


On Tue, Mar 21, 2017 at 05:00:06PM +0000, Lukasz Walewski wrote:
> Hi,
> 
> The standard 'elbe initvm submit' invocation results in the following list [1] of output files:
> 
> elbe-report.txt
> licence.txt
> log.txt
> root.sfs
> source.xml
> validation.txt
> 
> However, I need to extract some additional build artifacts as well, such as kernel image, initramfs, etc. This can be accomplished by switching from 'elbe initvm' to 'elbe control' interface and using: 'create_project, build, wait_busy and get_file' sequence of commands.
> 
> Switching to the lower-level 'elbe control' interface is necessary, in order to capture the correct <build-dir> directory needed by 'get_file', which is emitted only by 'elbe control create_project' but not available through 'elbe initvm submit'.
> 
> My question: is it possible to extract arbitrary files from <build-dir>/target without resort to 'elbe control get_file' but rather by extending list [1] (e.g. by specifying the additional files/paths in the XML file) and using the convenient 'elbe initvm submit'?

This would already be possible with ubi binary volumes.
However, that would be a pretty bad hack. 
I would support a patch which allows to extract arbitrary files to the
img list via an xml tag, if i understood the usecase.

Why are you trying to extract an initrd ? 
Please explain.

> 
> An alternative would be to make 'elbe initvm submit --keep-files' output the <build-dir>, which could then be used in subsequent 'elbe control get_file' commands.

"elbe initvm submit" already has the --writeproject option. (at least in
git version) It writes the <build-dir> into a file.

You should be able to use it like this:

elbe initvm submit --keep-files --writeproject xxx.prj xxx.xml

elbe control get_files `cat xxx.prj` 



-- 
Mit freundlichen Grüßen
Torben Hohn

Linutronix GmbH

Standort: Bremen

Phone: +49 7556 25 999 18; Fax.: +49 7556 25 999 99

Firmensitz / Registered Office: D-88690 Uhldingen, Bahnhofstr. 3
Registergericht / Local District Court: Amtsgericht Freiburg i. Br.; HRB
Nr. / Trade register no.: 700 806

Geschäftsführer / Managing Directors: Heinz Egger, Thomas Gleixner

Eine Bitte von uns: Sollten Sie diese E-Mail irrtümlich erhalten haben,
benachrichtigen Sie uns in diesem Falle bitte sobald wie es Ihnen
möglich ist, durch Antwort-Mail. Vielen Dank!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: Digital signature
URL: <http://lists.linutronix.de/pipermail/elbe-devel/attachments/20170322/ef47f7ee/attachment.sig>


More information about the elbe-devel mailing list