[elbe-devel] How to create an encrypted rootfs image using Elbe?

Manuel Traut manuel.traut at linutronix.de
Tue Aug 1 08:42:19 CEST 2017


Hi Lukasz,

> Manuel Traut wrote
> >> My question is whether it is possible to execute commands within initvm
> >> *after* the RFS has been generated? - I mean something similar to 
> > <finetuning>
> >  commands but executed after the RFS generation.
> > 
> > No, there is currently no such feature. But i understand the need for it.
> > 
> > I think about allowing a list of 
> > <finetuning>
> >  sections and adding some
> > attributes, e.g. 
> > <finetuning runafter='imagegen'>
> > . Or sth. like this..
> 
> I noticed that the constructor of the ElbeProject class accepts a
> postbuild_file argument with the default value 'None', which provides the
> name of a script that gets executed right at the end of the
> ElbeProject.build method:
> 
>         if self.postbuild_file:
>             self.log.h2 ("postbuild script:")
>             self.log.do (self.postbuild_file + ' "%s %s %s"' % (
>                             self.builddir,
>                             self.xml.text ("project/version"),
>                             self.xml.text ("project/name")),
>                          allow_fail=True)
> 
> I couldn't figure out how to actually use this functionality, though. Could
> it be used or adapted to implement the post-build finetuning kind of thing?

this hook is called, after a project build. It can be used to e.g. auto deploy
the generated image.

You need to program your own elbe-frontend to use this functionality.

IMHO it is not useful for finetuning.

  Manuel




More information about the elbe-devel mailing list