On 28/04/15 22:18, Andrew Stuart wrote:
I saw mention of rumprun_boot() in a previous thread.
Is there a way to execute commands on boot prior to execution of the main
application? If yes would you mind directing me please to somewhere I can read
more to understand it.
What sort of boot commands do you have in mind?
In any case, without writing some code, the answer is more or less no.
There were some ideas tossed in the "configuration" thread from about a
month ago, but there's nothing concrete yet.
One thing I've been wanting to do for years is to add a "pause until
config is complete" interface, which would wait for a special PDU
remotely to indicate that all "/etc/rc-like" remote commands (i.e.
rumpctrl ones) have been executed. That way you could configure the
rump kernel before calling main without the need to bake all the
configuration commands into the rumprun image (*). Maybe I'll get
around to it one of these days, shouldn't be more than a few hours of work.
*) which may or may not be a desirable approach in all circumstances,
but at least now it seems like the shortest path to winning the battle,
since figuring out how to bake multiple applications into a single
rumprun image will most likely be tricky.