[Buildroot] [PATCH] package/syslog-ng: bump version to 3.22.1

Chris Packham judge.packham at gmail.com
Mon Sep 9 11:46:47 UTC 2019


On Mon, 9 Sep 2019 23:40 Carlos Santos, <unixmania at gmail.com> wrote:

> > > Hi Ricardo,
> > >
> > > I ran a test on a QEMU build with udev and noticed that syslog-g hangs
> > > on start-up. Using strace I found that it blocks on a getrandom()
> > > call, which seems to be make sense since the start-up order is
> > >
> > >     /etc/init.d/S01syslog-ng
> > >     /etc/init.d/S10udev
> > >     /etc/init.d/S20urandom
> >
> > I didn't have any particular reason for S01 other than that's what
> > rsyslog does. Moving it after urandom would be fine.
>
> S01 is the right place, since udevd uses syslog and starting syslog-ng
> later would prevent error messages from being saved in
> /var/logmessages.
>
> The correct solution is to configure the kernel with the random
> hardware support embedded, not as a module (e.g. HW_RANDOM=y ,
> CONFIG_VIRTIO_PCI=y  and HW_RANDOM_VIRTIO=y in
> board/qemu/arm-versatile/linux.config).
>

Still seems odd that this dependency exhists. Maybe there is an option to
disable it.


> > >
> > > So when syslog-ng starts the random number generator is not working
> > > properly because virtio-rng is not loaded yet.
> > >
> > > It does not hang if I revert the order to start syslog-ng after udev
> > > or modifi the init script to load virtio-rng by before starting
> > > syslog-ng.
> > >
> > > I observed the same behaviour with versions 3.19.1 and 3.22.1.
> > >
> > > I tested with an ARM qemu based on qemu_arm_versatile_defconfig (no
> > > udev, no virtio support in the kernel). It shows the same behavior
> > > except that loading the rng-coremodule suffices.
> > >
> > > --
> > > Carlos Santos <unixmania at gmail.com>
>
> --
> Carlos Santos <unixmania at gmail.com>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20190909/e11003ea/attachment-0002.html>


More information about the buildroot mailing list