[Buildroot] Systemd default console

Carlos Santos unixmania at gmail.com
Fri Sep 20 15:16:10 UTC 2019


On Fri, Sep 20, 2019 at 11:51 AM Thomas Petazzoni
<thomas.petazzoni at bootlin.com> wrote:
>
> On Fri, 20 Sep 2019 11:47:08 -0300
> Carlos Santos <unixmania at gmail.com> wrote:
>
> > > -   busybox creates the link
> > > /etc/systemd/system/getty.target.wants/console-getty.service, which
> > > starts a getty on ttyS0
> > > -   systemd itself create
> > > /run/systemd/generator/getty.target.wants/serial-getty at ttyS0.service
> > > automatically (no idea when and how)
> > >
> > > in and output is perfectly garbled until one of those services is killed.
> > > Given that systemd automatically picks up the getty from the
> > > commandline, is there any reason for busybox to setup /dev/console?
> >
> > Do not use BR2_TARGET_GENERIC_GETTY_PORT with systemd.
>
> There's a whole bunch of logic at
> https://git.buildroot.org/buildroot/tree/package/systemd/systemd.mk#n435
> to do stuff depending on the value of BR2_TARGET_GENERIC_GETTY_PORT. So
> it seems kind of odd to recommend to not use
> BR2_TARGET_GENERIC_GETTY_PORT with systemd. Shouldn't we fix what's in
> systemd.mk so that it works as expected ?

I will investigate this. There is already a related bug but it got
stuck waiting for an answer from the OP:

    https://bugs.busybox.net/show_bug.cgi?id=11766

-- 
Carlos Santos <unixmania at gmail.com>



More information about the buildroot mailing list