[OE-core] [PATCH 1/1] systemd-conf: configure wired network with dhcp

Alex Kiernan alex.kiernan at gmail.com
Tue May 21 09:41:25 UTC 2019


On Tue, May 21, 2019 at 6:04 AM Kang Kai <Kai.Kang at windriver.com> wrote:
>
> On 2019/5/21 下午12:49, Alex Kiernan wrote:
> > On Tue, May 21, 2019 at 2:34 AM Kang Kai <Kai.Kang at windriver.com> wrote:
> >> On 2019/5/21 上午1:45, Alex Kiernan wrote:
> >>> On Mon, May 20, 2019 at 10:47 AM <kai.kang at windriver.com> wrote:
> >>>> From: Kai Kang <kai.kang at windriver.com>
> >>>>
> >>>> Add a configure file for systemd.networkd to configure wired network
> >>>> interfaces with dhcp. It works with common network interfaces such eth0
> >>>> and eno1.
> >>>>
> >>>> [YOCTO #13057]
> >>>>
> >>> I'm really not convinced about this - yes it's initially surprising,
> >>> but should base packages have this kind of assumptions/policy baked
> >>> into them?
> >> I have considered whether systemd or systemd-conf should contain such
> >> configure file. Compare to Fedora and Debian,
> >> no such kind of pre-configured network setting provided by systemd, so I
> >> added the configure file to systemd-config.
> >>
> >> If systemd should be preferred, I'll update in v2.
> >>
> > No, systemd-conf is the right place for it, since this is machine
> > specific configuration. My question is really if this piece of
> > configuration should exist at all in OE-Core; but I'm not totally
> > opposed to it.
> >
> > I could live with the kind of construction in meta-yoe (but with the
> > files added to systemd-conf as you already have)
>
>
> The original requirement is from [Bug 13057 - No default network
> configuration for systemd-networkd ] which blocks to make systemd as
> default init manager. If add this to meta-yoe, it still no working
> network if no connman/networkmanager installed(but this is same as
> Fedora 29 and Debian 9).
>

I guess it's the requirement I'm questioning, equally you've got it
systemd-conf, which is explicitly machine specific and so I'd struggle
to say it shouldn't go in.


--
Alex Kiernan


More information about the Openembedded-core mailing list