> -----Original Message-----
> From: openembedded-core@lists.openembedded.org <openembedded-
> c...@lists.openembedded.org> On Behalf Of leimaohui
> Sent: den 17 juni 2022 08:07
> To: Alex Kiernan <alex.kier...@gmail.com>; Alexander Kanavin
> <alex.kana...@gmail.com>
> Cc: openembedded-core@lists.openembedded.org
> Subject: Re: [OE-core] DISTRO_FEATURES_BACKFILL_CONSIDERED = "sysvinit"
> doesn't work.
> 
> Hi,
> 
> > I suspect it's that you can't set it in local.conf now:
> 
> You are right, setting NIT_MANAGER = "systemd" in local.conf doesn't work.
> Sysvinit is still built.
> So, there is no way to disable sysvinit except setting
> DISTRO_FEATURES:remove="sysvinit" in local.conf, right?

The problem is that local.conf is read before ${DISTRO}.conf, and since 
poky.conf uses INIT_MANAGER = "sysvinit", you will currently need to use 
an override to force INIT_MANAGER to the value you want if you want to
set it in local.conf, e.g., INIT_MANAGER:forcevariable = "systemd". Since 
this is typically not expected, I think it would be more appropriate to 
change poky.conf to instead use INIT_MANAGER ?= "sysvinit".

//Peter

> 
> 
> Best regards
> 
> 
> > -----Original Message-----
> > From: Alex Kiernan <alex.kier...@gmail.com>
> > Sent: Saturday, May 28, 2022 5:57 PM
> > To: Alexander Kanavin <alex.kana...@gmail.com>
> > Cc: Lei, Maohui <leimao...@fujitsu.com>;
> > openembedded-core@lists.openembedded.org
> > Subject: Re: [OE-core] DISTRO_FEATURES_BACKFILL_CONSIDERED = "sysvinit"
> > doesn't work.
> >
> > I suspect it's that you can't set it in local.conf now:
> >
> > # $INIT_MANAGER [3 operations]
> > #   set /home/alexk/poky/build/conf/local.conf:291
> > #     "systemd"
> > #   set /home/alexk/poky/meta-poky/conf/distro/poky.conf:70
> > #     "sysvinit"
> > #   set /home/alexk/poky/meta/conf/distro/defaultsetup.conf:20
> > #     [_defaultval] "none"
> > # pre-expansion value:
> > #   "sysvinit"
> > INIT_MANAGER="sysvinit"
> >
> > On Fri, May 27, 2022 at 8:11 PM Alexander Kanavin
> <alex.kana...@gmail.com>
> > wrote:
> > >
> > > Can you explain the use case please? If you just want to use systemd,
> > > set INIT_MANAGER = "systemd".
> > >
> > > Alex
> > >
> > > On Fri, 27 May 2022 at 02:39, leimaohui <leimao...@fujitsu.com> wrote:
> > > >
> > > > Hi, all
> > > >
> > > > Because the following patch, "DISTRO_FEATURES_BACKFILL_CONSIDERED =
> > "sysvinit"" doesn't work anymore. I have to " DISTRO_FEATURES:remove =
> > "sysvinit" " instead to disable sysvinit.
> > > > But I'm not very clear if there is difference between
> > "DISTRO_FEATURES_BACKFILL_CONSIDERED" and " DISTRO_FEATURES:remove
> > " for my image. Can anybody tell me?
> > > > --------------------------------------
> > > > commit a6ebbe3a10ff76386dde03ddaa7097bdb2f5d9a5
> > > > Author: Richard Purdie <richard.pur...@linuxfoundation.org>
> > > > Date:   Wed Apr 13 18:41:39 2022 +0100
> > > >
> > > >     poky: Use INIT_MANAGER in main distro config
> > > >
> > > >     Just to keep things standard and clear, use the new INIT_MANAGER
> > variable
> > > >     in the main distro config. This matches the default config with
> the
> > addition
> > > >     of some DISTRO_FEATURES tweaks.
> > > >     ......
> > > >     BB_HASHSERVE ??= "auto"
> > > >     +
> > > >     +INIT_MANAGER = "sysvinit"
> > > > --------------------------------------
> > > >
> > > > Best regards
> > > > Lei
> > > >
> > > >
> > > >
> > >
> > >
> > >
> >
> >
> > --
> > Alex Kiernan
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#167020): 
https://lists.openembedded.org/g/openembedded-core/message/167020
Mute This Topic: https://lists.openembedded.org/mt/91367188/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to