[Buildroot] [PATCH v2] package/openssh: Add sysusers.d snippet

Chris Lesiak chris.lesiak at licor.com
Tue Dec 18 14:14:22 UTC 2018

On 12/18/18 1:49 AM, Thomas Petazzoni wrote:
> Hello,
> On Mon, 17 Dec 2018 23:59:04 +0100, Arnout Vandecappelle wrote:
>>   Which brings me to my question to Chris: what was the purpose of this patch to
>> begin with? Since OPENSSH_USERS is already set, the sshd user will already exist
>> in /etc/passwd, so the sysusers.d directive will be ignored... Either that, or
>> our mkusers script doesn't work correctly.
> Stateless systems, where /etc and /var don't even "exist" in a
> persistent fashion, and are entirely populated at boot time.
> Best regards,
> Thomas

In my particular case, /etc is empty on first boot, but retains state 
after that.  Even if I started with a populated /etc/passwd, when 
updating /usr (switching in a new version to update the the OS), I might 
have new services with associated users that I would like to have 
automatically added to /etc/passwd.

Chris Lesiak
Principal Design Engineer, Software
LI-COR Biosciences
4647 Superior Street
Lincoln, NE 68504 USA
chris.lesiak at licor.com

More information about the buildroot mailing list