[OE-core] [PATCH 1/1] rootfs-postcommands.bbclass: sort passwd entries

Patrick Ohly patrick.ohly at intel.com
Sat Jan 7 19:00:53 UTC 2017


On Sat, 2017-01-07 at 09:59 +0000, Phil Blundell wrote:
> On Sat, 2017-01-07 at 09:06 +0100, Patrick Ohly wrote:
> > 
> Yes, but there's already a solution for that problem:
> > useradd-staticids.bbclass
> > 
> > I was assuming that someone who wants identical files is already
> > using
> > that. Should it be mentioned in a comment next to the new feature?
> 
> That sounds like a good idea.  And in that case, maybe it would be
> better to sort on uid rather than username?  That would preserve the
> "traditional" ordering in the file, i.e. root first.

I had thought about that, but then did not pursue that further because
it would have made sorting quite a bit more complex (needs to know about
line content, id not present in each file).

I can give it a try, though, if that's considered worth some additional
complexity.

-- 
Best Regards, Patrick Ohly

The content of this message is my personal opinion only and although
I am an employee of Intel, the statements I make here in no way
represent Intel's position on the issue, nor am I authorized to speak
on behalf of Intel on this matter.






More information about the Openembedded-core mailing list