All of lore.kernel.org
 help / color / mirror / Atom feed
* DISTRO_FEATURES_BACKFILL_CONSIDERED = "sysvinit" doesn't work.
@ 2022-05-27  0:39 leimaohui
  2022-05-27 19:10 ` [OE-core] " Alexander Kanavin
  0 siblings, 1 reply; 6+ messages in thread
From: leimaohui @ 2022-05-27  0:39 UTC (permalink / raw)
  To: openembedded-core

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.purdie@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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [OE-core] DISTRO_FEATURES_BACKFILL_CONSIDERED = "sysvinit" doesn't work.
  2022-05-27  0:39 DISTRO_FEATURES_BACKFILL_CONSIDERED = "sysvinit" doesn't work leimaohui
@ 2022-05-27 19:10 ` Alexander Kanavin
  2022-05-28  9:57   ` Alex Kiernan
  2022-05-30  6:29   ` leimaohui
  0 siblings, 2 replies; 6+ messages in thread
From: Alexander Kanavin @ 2022-05-27 19:10 UTC (permalink / raw)
  To: leimaohui; +Cc: openembedded-core

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 <leimaohui@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.purdie@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
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#166198): https://lists.openembedded.org/g/openembedded-core/message/166198
> Mute This Topic: https://lists.openembedded.org/mt/91367188/1686489
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [alex.kanavin@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [OE-core] DISTRO_FEATURES_BACKFILL_CONSIDERED = "sysvinit" doesn't work.
  2022-05-27 19:10 ` [OE-core] " Alexander Kanavin
@ 2022-05-28  9:57   ` Alex Kiernan
  2022-06-17  6:07     ` leimaohui
  2022-05-30  6:29   ` leimaohui
  1 sibling, 1 reply; 6+ messages in thread
From: Alex Kiernan @ 2022-05-28  9:57 UTC (permalink / raw)
  To: Alexander Kanavin; +Cc: leimaohui, openembedded-core

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.kanavin@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 <leimaohui@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.purdie@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
> >
> >
> >
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#166217): https://lists.openembedded.org/g/openembedded-core/message/166217
> Mute This Topic: https://lists.openembedded.org/mt/91367188/3618097
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [alex.kiernan@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>


-- 
Alex Kiernan


^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: [OE-core] DISTRO_FEATURES_BACKFILL_CONSIDERED = "sysvinit" doesn't work.
  2022-05-27 19:10 ` [OE-core] " Alexander Kanavin
  2022-05-28  9:57   ` Alex Kiernan
@ 2022-05-30  6:29   ` leimaohui
  1 sibling, 0 replies; 6+ messages in thread
From: leimaohui @ 2022-05-30  6:29 UTC (permalink / raw)
  To: Alexander Kanavin; +Cc: openembedded-core

Hi  Alex

> Can you explain the use case please? If you just want to use systemd, 

I just want to select systemd instead of sysvinit. So I added the following in local.conf before. But it doesn't work recently.
--------------------------------------------
DISTRO_FEATURES:append = " system "
DISTRO_FEATURES_BACKFILL_CONSIDERED = "sysvinit"
VIRTUAL-RUNTIME_init_manager = "systemd"
--------------------------------------------

> set INIT_MANAGER = "systemd".

Ok, I'll try. Thanks for your reply.


Best regards
Lei

> -----Original Message-----
> From: Alexander Kanavin <alex.kanavin@gmail.com>
> Sent: Saturday, May 28, 2022 3:11 AM
> To: Lei, Maohui <leimaohui@fujitsu.com>
> Cc: openembedded-core@lists.openembedded.org
> Subject: Re: [OE-core] DISTRO_FEATURES_BACKFILL_CONSIDERED = "sysvinit"
> doesn't work.
> 
> 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 <leimaohui@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.purdie@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
> >
> > -=-=-=-=-=-=-=-=-=-=-=-
> > Links: You receive all messages sent to this group.
> > View/Reply Online (#166198):
> > https://lists.openembedded.org/g/openembedded-core/message/166198
> > Mute This Topic: https://lists.openembedded.org/mt/91367188/1686489
> > Group Owner: openembedded-core+owner@lists.openembedded.org
> > Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub
> > [alex.kanavin@gmail.com]
> > -=-=-=-=-=-=-=-=-=-=-=-
> >

^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: [OE-core] DISTRO_FEATURES_BACKFILL_CONSIDERED = "sysvinit" doesn't work.
  2022-05-28  9:57   ` Alex Kiernan
@ 2022-06-17  6:07     ` leimaohui
  2022-06-17 10:34       ` Peter Kjellerstedt
  0 siblings, 1 reply; 6+ messages in thread
From: leimaohui @ 2022-06-17  6:07 UTC (permalink / raw)
  To: Alex Kiernan, Alexander Kanavin; +Cc: openembedded-core

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?


Best regards


> -----Original Message-----
> From: Alex Kiernan <alex.kiernan@gmail.com>
> Sent: Saturday, May 28, 2022 5:57 PM
> To: Alexander Kanavin <alex.kanavin@gmail.com>
> Cc: Lei, Maohui <leimaohui@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.kanavin@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 <leimaohui@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.purdie@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
> > >
> > >
> > >
> >
> > -=-=-=-=-=-=-=-=-=-=-=-
> > Links: You receive all messages sent to this group.
> > View/Reply Online (#166217):
> > https://lists.openembedded.org/g/openembedded-core/message/166217
> > Mute This Topic: https://lists.openembedded.org/mt/91367188/3618097
> > Group Owner: openembedded-core+owner@lists.openembedded.org
> > Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub
> > [alex.kiernan@gmail.com]
> > -=-=-=-=-=-=-=-=-=-=-=-
> >
> 
> 
> --
> Alex Kiernan

^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: [OE-core] DISTRO_FEATURES_BACKFILL_CONSIDERED = "sysvinit" doesn't work.
  2022-06-17  6:07     ` leimaohui
@ 2022-06-17 10:34       ` Peter Kjellerstedt
  0 siblings, 0 replies; 6+ messages in thread
From: Peter Kjellerstedt @ 2022-06-17 10:34 UTC (permalink / raw)
  To: leimaohui, Alex Kiernan, Alexander Kanavin; +Cc: openembedded-core

> -----Original Message-----
> From: openembedded-core@lists.openembedded.org <openembedded-
> core@lists.openembedded.org> On Behalf Of leimaohui
> Sent: den 17 juni 2022 08:07
> To: Alex Kiernan <alex.kiernan@gmail.com>; Alexander Kanavin
> <alex.kanavin@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.kiernan@gmail.com>
> > Sent: Saturday, May 28, 2022 5:57 PM
> > To: Alexander Kanavin <alex.kanavin@gmail.com>
> > Cc: Lei, Maohui <leimaohui@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.kanavin@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 <leimaohui@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.purdie@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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-06-17 10:34 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-27  0:39 DISTRO_FEATURES_BACKFILL_CONSIDERED = "sysvinit" doesn't work leimaohui
2022-05-27 19:10 ` [OE-core] " Alexander Kanavin
2022-05-28  9:57   ` Alex Kiernan
2022-06-17  6:07     ` leimaohui
2022-06-17 10:34       ` Peter Kjellerstedt
2022-05-30  6:29   ` leimaohui

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.