From: Thomas Schwinge > >
Is it posible to pass a variable from command line to an UML instance ?
> I mean, something like this. Launch UML from cmd line.
>
> linux ubd0=root_fs MYVARIABLE=values
>
> Then inside the UML, we can get the MYVARIABLES back.
Just the same way as you do with a natively running linux: Arguments on
the command line which are not recognized by the kerenel are assed to
init.
So you can either evaluate them with init (good) or you can parse
/proc/1/environ (bad).
Regards,
Thomas