[Buildroot] SSHD issue between 2015 and 2020 versions

Stephen Beckwith embeddedsteve at gmail.com
Tue Aug 11 14:02:16 UTC 2020

  Thank you for your reply.  As I pointed out in the document:
2020 Buildroot creates a "full_users_table.txt" in the
output/build/buildroot_fs directory, whereas the 2015 version puts a
_users_table.txt in the output/build directory.  In the case of the 2015
Buildroot, this file is "empty", whereas the 2020 Buildroot has an entry in
this file that seems to be placed there by the Buildroot infrastructure.
Why?  (I realize infrastructure changes occur between releases and we're
making a might big leap here).
I did update the Buildroot configuration via menuconfig (we save off a
defconfig) since there are new default options for packages,etc in the new
Buildroot release.
A "simple build" is not possible, due to the nature of our setup using an
external tree for the proprietary code.
I did a build from "scratch" (we call extraclean, removes the output
directory and does a complete re-setup of the target information we use).
This builds fine, without opensshd enabled in the configuration.  I then
use menuconfig to enable opensshd (in target packages->networking) and do a
"make" here and I get this error at the end when we package up the entire
system.  the opensshd itself builds correctly.
The contents of the full_users_table.txt file comes from the
sshd-sysusers.conf file in the 2020 Buildroot openssh package.  We do NOT
use systemd or Device Tree.  Yet this is defined as the OPENSSH_USERS in
the opensshd.mk file, how does this then get to the full_users_table.txt???
I have enclosed the .config file used to build WITH opensshd enabled.

I look forward to your reply.

Stephen Beckwith

On Mon, Aug 10, 2020 at 6:09 PM Peter Seiderer <ps.report at gmx.net> wrote:

> Hello Stephen,
> On Mon, 10 Aug 2020 17:03:05 -0400, Stephen Beckwith <
> embeddedsteve at gmail.com> wrote:
> > Please see the attached document that describes an issue that I've
> > encountered when migrating from Buildroot 2015.08.1 to Buildroot 2020.02.
> > At this point, I cannot include ssh/sshd for inclusion in the system,
> which
> > is necessary.
> Hard to determine what is causing your failure:
>         mkusers: user 'sshd' already exists with group 'users' (wants
> 'sshd')
> Does it happen with an simple build? Or with your re-started one?
> Please provide a .config/defconfig file from your failing buildroot
> configuration...
> Regards,
> Peter
> >
> > Any pointers/suggestions would be greatly appreciated.
> >
> > Regards,
> > Stephen Beckwith
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20200811/4e5ae379/attachment-0002.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: buildroot_configFile
Type: application/octet-stream
Size: 129256 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20200811/4e5ae379/attachment-0002.obj>

More information about the buildroot mailing list