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

Lukasz Walewski lwalewski at s-can.at
Wed Mar 22 09:22:56 CET 2017


>On 2017-03-22, Lukasz Walewski <lwalewski at s-can.at> wrote:
>>>> 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.
>>>
>>> With 'elbe control list_projects' you can see which projects are
>>> available. This may be a suitable workaround for you.
>>
>> Yes, but how to select the right one?
>
>The project name (from the XML file) and project creation date are
>shown. Also, although not very elegant, a before/after diff of
>list_projects can be performed. But in practice, these methods are
>probably sufficient.
>
>I personally always use the 'elbe control' variation for creating root
>filesystems. As you have written, it gives you far more control to do
>the things you want to do. Is there a reason you need to use submit?

Hi John, no, there is no serious reason for that. I just wanted to make sure that my way of doing things isn't overly complicated (one command in the build script against at least five). Additionally, the XML schema contains something like 'target%package' which comes close to what I was looking for, e.g. the root.sfs file created with:

<target>
  <package>
    <squashfs>
      <name>root.sfs</name>
    </squashfs>
  </package>
</target>

results in having root.sfs in the output, so why not having something like:

<target>
  <package>
    <plain_file>
      <path>chroot/initramfs.cpio.gz</path>
    </plain_file >
  </package>
</target>

which would copy the given file out of the initvm together with other output files, when 'elbe control get_files' gets executed.

In any case, the above is just a raw idea of a newcomer. I am fine with your suggestion and thanks for sharing your experience!

Best regards,
Lukasz


----------------------------------------

scan Messtechnik GmbH
Brigittagasse 22-24
A-1200 Wien/Vienna
tel. +43 1 219 73 93 - 0
fax +43 1 219 73 93 - 12
http://www.s-can.at
office at s-can.at

Geschaeftsfuehrer/President: DI Andreas Weingartner
Firmenbuchnummer/Incorporation No: FN178880i
Gerichtsstand/Court of Jurisdiction: Wien/Vienna

----------------------------------------

s::can - intelligent, optical, online

i::scan - compact, precise and affordable!
UV254::NTU::FTU::TOC::DOC::COD::BOD::Colour ...and many more to come!
http://www.i-scan.at
----------------------------------------
"YES WE SCAN !"




More information about the elbe-devel mailing list