Re: [yocto] How to switch yocto INIT_MANAGER from systemd to sysvinit #dunfell

2021-06-01 Thread Swapna Nannapaneni
Example helps. Thanks!!


On Mon, May 31, 2021 at 2:05 AM Zoran  wrote:

> What about the following:
>
> https://docs.yoctoproject.org/ref-manual/migration-3.0.html?highlight=init_manager#init-system-selection
>
> To be enhanced/added with the following:
>
> https://github.com/ZoranStojsavljevic/bbb-yocto/blob/master/bbb-releases/bbb-hardknott/README.md
>
> Best Regards,
> Zee
> ___
>
> On Fri, May 28, 2021 at 3:02 PM Swapna Nannapaneni
>  wrote:
> >
> > Typo. No leading space  INIT_MANAGER = "sysvinit".
> >
> > Thanks,
> > Priya.
> >
> > On Fri, May 28, 2021 at 8:55 AM Zoran Stojsavljevic <
> zoran.stojsavlje...@gmail.com> wrote:
> >>
> >> > you don't want the leading space.
> >>
> >> I got the idea from reading
> >>
> https://docs.yoctoproject.org/ref-manual/migration-3.0.html?highlight=init_manager#init-system-selection
> >>
> >> But this is exactly why we need some explicit examples. :-)
> >>
> >> Zee
> >> ___
> >>
> >> On Fri, May 28, 2021 at 2:45 PM Robert P. J. Day 
> wrote:
> >> >
> >> > On Fri, 28 May 2021, Zoran wrote:
> >> >
> >> > > > Tried setting  INIT_MANAGER  = " sysvinit" in
> build/conf/local.conf
> >> > >
> >> > > Is it INIT_MANAGER  = " sysvinit" , or INIT_MANAGER  = "sysvinit"
> (no
> >> > > blank at the beginning)?
> >> > >
> >> > > Thank you,
> >> > > Zee
> >> >
> >> >   you don't want the leading space.
> >> >
> >> > rday
>
> 
>
>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#53734): https://lists.yoctoproject.org/g/yocto/message/53734
Mute This Topic: https://lists.yoctoproject.org/mt/83136294/21656
Mute #dunfell:https://lists.yoctoproject.org/g/yocto/mutehashtag/dunfell
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [yocto] How to switch yocto INIT_MANAGER from systemd to sysvinit #dunfell

2021-05-31 Thread Zoran
What about the following:
https://docs.yoctoproject.org/ref-manual/migration-3.0.html?highlight=init_manager#init-system-selection

To be enhanced/added with the following:
https://github.com/ZoranStojsavljevic/bbb-yocto/blob/master/bbb-releases/bbb-hardknott/README.md

Best Regards,
Zee
___

On Fri, May 28, 2021 at 3:02 PM Swapna Nannapaneni
 wrote:
>
> Typo. No leading space  INIT_MANAGER = "sysvinit".
>
> Thanks,
> Priya.
>
> On Fri, May 28, 2021 at 8:55 AM Zoran Stojsavljevic 
>  wrote:
>>
>> > you don't want the leading space.
>>
>> I got the idea from reading
>> https://docs.yoctoproject.org/ref-manual/migration-3.0.html?highlight=init_manager#init-system-selection
>>
>> But this is exactly why we need some explicit examples. :-)
>>
>> Zee
>> ___
>>
>> On Fri, May 28, 2021 at 2:45 PM Robert P. J. Day  
>> wrote:
>> >
>> > On Fri, 28 May 2021, Zoran wrote:
>> >
>> > > > Tried setting  INIT_MANAGER  = " sysvinit" in build/conf/local.conf
>> > >
>> > > Is it INIT_MANAGER  = " sysvinit" , or INIT_MANAGER  = "sysvinit" (no
>> > > blank at the beginning)?
>> > >
>> > > Thank you,
>> > > Zee
>> >
>> >   you don't want the leading space.
>> >
>> > rday

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#53707): https://lists.yoctoproject.org/g/yocto/message/53707
Mute This Topic: https://lists.yoctoproject.org/mt/83136294/21656
Mute #dunfell:https://lists.yoctoproject.org/g/yocto/mutehashtag/dunfell
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [yocto] How to switch yocto INIT_MANAGER from systemd to sysvinit #dunfell

2021-05-28 Thread Swapna Nannapaneni
Typo. No leading space  INIT_MANAGER = "sysvinit".

Thanks,
Priya.

On Fri, May 28, 2021 at 8:55 AM Zoran Stojsavljevic <
zoran.stojsavlje...@gmail.com> wrote:

> > you don't want the leading space.
>
> I got the idea from reading
>
> https://docs.yoctoproject.org/ref-manual/migration-3.0.html?highlight=init_manager#init-system-selection
>
> But this is exactly why we need some explicit examples. :-)
>
> Zee
> ___
>
> On Fri, May 28, 2021 at 2:45 PM Robert P. J. Day 
> wrote:
> >
> > On Fri, 28 May 2021, Zoran wrote:
> >
> > > > Tried setting  INIT_MANAGER  = " sysvinit" in build/conf/local.conf
> > >
> > > Is it INIT_MANAGER  = " sysvinit" , or INIT_MANAGER  = "sysvinit" (no
> > > blank at the beginning)?
> > >
> > > Thank you,
> > > Zee
> >
> >   you don't want the leading space.
> >
> > rday
>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#53694): https://lists.yoctoproject.org/g/yocto/message/53694
Mute This Topic: https://lists.yoctoproject.org/mt/83136294/21656
Mute #dunfell:https://lists.yoctoproject.org/g/yocto/mutehashtag/dunfell
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [yocto] How to switch yocto INIT_MANAGER from systemd to sysvinit #dunfell

2021-05-28 Thread Zoran
> you don't want the leading space.

I got the idea from reading
https://docs.yoctoproject.org/ref-manual/migration-3.0.html?highlight=init_manager#init-system-selection

But this is exactly why we need some explicit examples. :-)

Zee
___

On Fri, May 28, 2021 at 2:45 PM Robert P. J. Day  wrote:
>
> On Fri, 28 May 2021, Zoran wrote:
>
> > > Tried setting  INIT_MANAGER  = " sysvinit" in build/conf/local.conf
> >
> > Is it INIT_MANAGER  = " sysvinit" , or INIT_MANAGER  = "sysvinit" (no
> > blank at the beginning)?
> >
> > Thank you,
> > Zee
>
>   you don't want the leading space.
>
> rday

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#53693): https://lists.yoctoproject.org/g/yocto/message/53693
Mute This Topic: https://lists.yoctoproject.org/mt/83136294/21656
Mute #dunfell:https://lists.yoctoproject.org/g/yocto/mutehashtag/dunfell
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [yocto] How to switch yocto INIT_MANAGER from systemd to sysvinit #dunfell

2021-05-28 Thread Robert P. J. Day
On Fri, 28 May 2021, Zoran wrote:

> > Tried setting  INIT_MANAGER  = " sysvinit" in build/conf/local.conf
>
> Is it INIT_MANAGER  = " sysvinit" , or INIT_MANAGER  = "sysvinit" (no
> blank at the beginning)?
>
> Thank you,
> Zee

  you don't want the leading space.

rday

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#53692): https://lists.yoctoproject.org/g/yocto/message/53692
Mute This Topic: https://lists.yoctoproject.org/mt/83136294/21656
Mute #dunfell:https://lists.yoctoproject.org/g/yocto/mutehashtag/dunfell
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [yocto] How to switch yocto INIT_MANAGER from systemd to sysvinit #dunfell

2021-05-28 Thread Zoran
> Tried setting  INIT_MANAGER  = " sysvinit" in build/conf/local.conf

Is it INIT_MANAGER  = " sysvinit" , or INIT_MANAGER  = "sysvinit" (no
blank at the beginning)?

Thank you,
Zee
___

On Fri, May 28, 2021 at 1:47 PM Swapna Nannapaneni
 wrote:
>
> Thanks Robert and Raj!!
>
> I am using Yocto 3.1 Dunfell release.
>
> You are right about the .bbappend file. Changed the name in the overlay to 
> new-ver.bbappend  and no longer see the warning.
>
> Tried setting  INIT_MANAGER  = " sysvinit" in build/conf/local.conf but looks 
> like generated rootfs has init file pointing to init -> ../lib/systemd/systemd
>
> Priya.
>
> On Thu, May 27, 2021 at 7:28 PM Khem Raj  wrote:
>>
>>
>>
>> On 5/27/21 3:04 PM, sayinswa...@gmail.com wrote:
>> > Hello Yocto team:
>> >
>> > I just started with yocto and would like to know the process for
>> > switching the init manager from systemd to sysvinit.
>> >
>> > I tried this options in config file
>> > VIRTUAL-RUNTIME_init_manager = "busybox"
>> > PREFERRED_PROVIDER_udev = "sysvinit"
>> > PREFERRED_PROVIDER_udev-utils = "sysvinit"
>> > DISTRO_FEATURES_BACKFILL_CONSIDERED = "sysvinit"
>> > DEFAULT_DISTRO_FEATURES += " sysvinit"
>> >
>> > I see a warning when building my machine:
>> >
>> > No recipe for target:
>> > /recipes-core/sysvinit/sysvinit_2.88dsf.bbappend
>>
>> Please find out which layer is adding this bbappend you could use
>>
>> bitbake-layers show-appends sysvinit
>>
>> It seems recipe version is newer perhaps and the bbappend is still made
>> for older recipe, these things happen when you mix release branches for
>> different layers.
>>
>> >
>> > When I run this build on my target it still shows me systemd init 
>> > manager...
>> >
>> > Not sure if I am missing any options.
>> > Could you please let me know if there are any pointers I can refer to?
>> >
>> > Thanks,
>> > Priya
>> >
>> >
>> >
>> >
>> >
>> >
>
>
> 
>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#53691): https://lists.yoctoproject.org/g/yocto/message/53691
Mute This Topic: https://lists.yoctoproject.org/mt/83136294/21656
Mute #dunfell:https://lists.yoctoproject.org/g/yocto/mutehashtag/dunfell
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [yocto] How to switch yocto INIT_MANAGER from systemd to sysvinit #dunfell

2021-05-28 Thread Swapna Nannapaneni
Thanks Robert and Raj!!

I am using Yocto 3.1 Dunfell release.

You are right about the .bbappend file. Changed the name in the overlay to
new-ver.bbappend  and no longer see the warning.

Tried setting  INIT_MANAGER  = " sysvinit" in build/conf/local.conf but
looks like generated rootfs has init file pointing to init ->
../lib/systemd/systemd

Priya.

On Thu, May 27, 2021 at 7:28 PM Khem Raj  wrote:

>
>
> On 5/27/21 3:04 PM, sayinswa...@gmail.com wrote:
> > Hello Yocto team:
> >
> > I just started with yocto and would like to know the process for
> > switching the init manager from systemd to sysvinit.
> >
> > I tried this options in config file
> > VIRTUAL-RUNTIME_init_manager = "busybox"
> > PREFERRED_PROVIDER_udev = "sysvinit"
> > PREFERRED_PROVIDER_udev-utils = "sysvinit"
> > DISTRO_FEATURES_BACKFILL_CONSIDERED = "sysvinit"
> > DEFAULT_DISTRO_FEATURES += " sysvinit"
> >
> > I see a warning when building my machine:
> >
> > No recipe for target:
> > /recipes-core/sysvinit/sysvinit_2.88dsf.bbappend
>
> Please find out which layer is adding this bbappend you could use
>
> bitbake-layers show-appends sysvinit
>
> It seems recipe version is newer perhaps and the bbappend is still made
> for older recipe, these things happen when you mix release branches for
> different layers.
>
> >
> > When I run this build on my target it still shows me systemd init
> manager...
> >
> > Not sure if I am missing any options.
> > Could you please let me know if there are any pointers I can refer to?
> >
> > Thanks,
> > Priya
> >
> >
> >
> >
> > 
> >
>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#53690): https://lists.yoctoproject.org/g/yocto/message/53690
Mute This Topic: https://lists.yoctoproject.org/mt/83136294/21656
Mute #dunfell:https://lists.yoctoproject.org/g/yocto/mutehashtag/dunfell
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [yocto] How to switch yocto INIT_MANAGER from systemd to sysvinit #dunfell

2021-05-28 Thread Zoran
Why do I (always) point out the obvious?

And I do need... Geniuses are not meant to fix The World to understand them!?

Geniuses should understand The World (and act properly)!

Extras to geniality, do you, YOCTO primes, think?
___

Robert... If I am correct, i'm I?

Should you include in docs some examples??? Yes, U should!
As for an example fix:
poky/meta/conf/distro/include/init-manager-*.con, NOT
conf/distro/include/init-manager-*.conf

(full path is more explicit, isn't it?)

And some local.conf examples/snippets (since all descriptions are here
and there very dry):

## Add systemd service
INIT_MANAGER = "systemd"
## DISTRO_FEATURES_append = " systemd"
## DISTRO_FEATURES_BACKFILL_CONSIDERED += "sysvinit"
## VIRTUAL-RUNTIME_init_manager = "systemd"
## VIRTUAL-RUNTIME_dev_manager = "systemd"
## VIRTUAL-RUNTIME_initscripts = ""

Where INIT_MANAGER = "systemd" replaces all commented commands below

My two cent advice,
Zee
___

On Fri, May 28, 2021 at 1:28 AM Khem Raj  wrote:
>
>
>
> On 5/27/21 3:04 PM, sayinswa...@gmail.com wrote:
> > Hello Yocto team:
> >
> > I just started with yocto and would like to know the process for
> > switching the init manager from systemd to sysvinit.
> >
> > I tried this options in config file
> > VIRTUAL-RUNTIME_init_manager = "busybox"
> > PREFERRED_PROVIDER_udev = "sysvinit"
> > PREFERRED_PROVIDER_udev-utils = "sysvinit"
> > DISTRO_FEATURES_BACKFILL_CONSIDERED = "sysvinit"
> > DEFAULT_DISTRO_FEATURES += " sysvinit"
> >
> > I see a warning when building my machine:
> >
> > No recipe for target:
> > /recipes-core/sysvinit/sysvinit_2.88dsf.bbappend
>
> Please find out which layer is adding this bbappend you could use
>
> bitbake-layers show-appends sysvinit
>
> It seems recipe version is newer perhaps and the bbappend is still made
> for older recipe, these things happen when you mix release branches for
> different layers.
>
> >
> > When I run this build on my target it still shows me systemd init manager...
> >
> > Not sure if I am missing any options.
> > Could you please let me know if there are any pointers I can refer to?
> >
> > Thanks,
> > Priya
> >
> >
> >
> >
> >
> >
>
> 
>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#53689): https://lists.yoctoproject.org/g/yocto/message/53689
Mute This Topic: https://lists.yoctoproject.org/mt/83136294/21656
Mute #dunfell:https://lists.yoctoproject.org/g/yocto/mutehashtag/dunfell
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [yocto] How to switch yocto INIT_MANAGER from systemd to sysvinit #dunfell

2021-05-27 Thread Khem Raj



On 5/27/21 3:04 PM, sayinswa...@gmail.com wrote:

Hello Yocto team:

I just started with yocto and would like to know the process for 
switching the init manager from systemd to sysvinit.


I tried this options in config file
VIRTUAL-RUNTIME_init_manager = "busybox"
PREFERRED_PROVIDER_udev = "sysvinit"
PREFERRED_PROVIDER_udev-utils = "sysvinit"
DISTRO_FEATURES_BACKFILL_CONSIDERED = "sysvinit"
DEFAULT_DISTRO_FEATURES += " sysvinit"

I see a warning when building my machine:

No recipe for target:
/recipes-core/sysvinit/sysvinit_2.88dsf.bbappend


Please find out which layer is adding this bbappend you could use

bitbake-layers show-appends sysvinit

It seems recipe version is newer perhaps and the bbappend is still made 
for older recipe, these things happen when you mix release branches for 
different layers.




When I run this build on my target it still shows me systemd init manager...

Not sure if I am missing any options.
Could you please let me know if there are any pointers I can refer to?

Thanks,
Priya







-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#53679): https://lists.yoctoproject.org/g/yocto/message/53679
Mute This Topic: https://lists.yoctoproject.org/mt/83136294/21656
Mute #dunfell:https://lists.yoctoproject.org/g/yocto/mutehashtag/dunfell
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [yocto] How to switch yocto INIT_MANAGER from systemd to sysvinit #dunfell

2021-05-27 Thread Khem Raj



On 5/27/21 3:12 PM, Robert P. J. Day wrote:

On Thu, 27 May 2021, sayinswa...@gmail.com wrote:


Hello Yocto team:

I just started with yocto and would like to know the process for switching the 
init
manager from systemd to sysvinit.

I tried this options in config file
VIRTUAL-RUNTIME_init_manager = "busybox"
PREFERRED_PROVIDER_udev = "sysvinit"
PREFERRED_PROVIDER_udev-utils = "sysvinit"
DISTRO_FEATURES_BACKFILL_CONSIDERED = "sysvinit"
DEFAULT_DISTRO_FEATURES += " sysvinit"


   as i recall, all of the above can be replaced by a single assignment
to the INIT_MANAGER variable.


it will depend on release, if you are on 3.0+ then yes single setting 
will work, older releases would mean above is needed. see


https://docs.yoctoproject.org/ref-manual/migration-3.0.html?highlight=init_manager#init-system-selection





rday






-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#53678): https://lists.yoctoproject.org/g/yocto/message/53678
Mute This Topic: https://lists.yoctoproject.org/mt/83136294/21656
Mute #dunfell:https://lists.yoctoproject.org/g/yocto/mutehashtag/dunfell
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [yocto] How to switch yocto INIT_MANAGER from systemd to sysvinit #dunfell

2021-05-27 Thread Robert P. J. Day
On Thu, 27 May 2021, sayinswa...@gmail.com wrote:

> Hello Yocto team:
>
> I just started with yocto and would like to know the process for switching 
> the init
> manager from systemd to sysvinit.
>
> I tried this options in config file
> VIRTUAL-RUNTIME_init_manager = "busybox"
> PREFERRED_PROVIDER_udev = "sysvinit"
> PREFERRED_PROVIDER_udev-utils = "sysvinit"
> DISTRO_FEATURES_BACKFILL_CONSIDERED = "sysvinit"
> DEFAULT_DISTRO_FEATURES += " sysvinit"

  as i recall, all of the above can be replaced by a single assignment
to the INIT_MANAGER variable.

rday

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#53677): https://lists.yoctoproject.org/g/yocto/message/53677
Mute This Topic: https://lists.yoctoproject.org/mt/83136294/21656
Mute #dunfell:https://lists.yoctoproject.org/g/yocto/mutehashtag/dunfell
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[yocto] How to switch yocto INIT_MANAGER from systemd to sysvinit #dunfell

2021-05-27 Thread sayinswapna
Hello Yocto team:

I just started with yocto and would like to know the process for switching the 
init manager from systemd to sysvinit.

I tried this options in config file
VIRTUAL-RUNTIME_init_manager = "busybox"
PREFERRED_PROVIDER_udev = "sysvinit"
PREFERRED_PROVIDER_udev-utils = "sysvinit"
DISTRO_FEATURES_BACKFILL_CONSIDERED = "sysvinit"
DEFAULT_DISTRO_FEATURES += " sysvinit"

I see a warning when building my machine:

No recipe for target:
/recipes-core/sysvinit/sysvinit_2.88dsf.bbappend

When I run this build on my target it still shows me systemd init manager...

Not sure if I am missing any options.
Could you please let me know if there are any pointers I can refer to?

Thanks,
Priya

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#53676): https://lists.yoctoproject.org/g/yocto/message/53676
Mute This Topic: https://lists.yoctoproject.org/mt/83136294/21656
Mute #dunfell:https://lists.yoctoproject.org/g/yocto/mutehashtag/dunfell
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-