[yocto] Making /etc/os-release loadable by shell script

Craig McQueen craig.mcqueen at innerrange.com
Wed Oct 14 22:16:11 PDT 2015


Ross Burton wrote:

> On 2 July 2015 at 09:00, Craig McQueen <craig.mcqueen at innerrange.com> wrote:
> > It would be good if the /etc/os-release file (created by the core os-release package) could be loadable by a shell script. That is, a shell script can do:
> >
> >    source /etc/os-release
> > or
> >    . /etc/os-release
> >
> > But it's currently not possible, because the file lacks double-quotes around values that would make it valid shell assignment syntax.
>
> Could you transform you bbappend to a patch against oe-core and submit it?

Sure, done. (It took me a long time to get around to setting up git for send-email functionality.)

I did the patch for master, although I'm still using dizzy myself.

-- 
Craig McQueen



More information about the yocto mailing list