* how to use systemd as system init manager
@ 2015-12-25 1:59 Jin Li
2015-12-25 5:55 ` Khem Raj
0 siblings, 1 reply; 5+ messages in thread
From: Jin Li @ 2015-12-25 1:59 UTC (permalink / raw)
To: yocto
Hi,
I am trying to build yocto project which use systemd as system init manager.
But the qemu boot up and still use INIT as usual. The rootfs even fail to install systemd.
I refers to yocto docs http://www.yoctoproject.org/docs/1.8/ref-manual/ref-manual.html#ref-features-distro
I use meta/recipes-extended/images/core-image-full-cmdline.bb and add the following part
to support systemd:
DISTRO_FEATURES_append = "systemd"
DISTRO_FEATURES_BACKFILL_CONSIDERED = "sysvinit"
Did I miss somethings ?
Any help would be appreciated.
Jin
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: how to use systemd as system init manager
2015-12-25 1:59 how to use systemd as system init manager Jin Li
@ 2015-12-25 5:55 ` Khem Raj
2015-12-26 1:57 ` Jin Li
0 siblings, 1 reply; 5+ messages in thread
From: Khem Raj @ 2015-12-25 5:55 UTC (permalink / raw)
To: Jin Li; +Cc: yocto@yoctoproject.org
On Thu, Dec 24, 2015 at 5:59 PM, Jin Li <lijin14@huawei.com> wrote:
> Hi,
>
> I am trying to build yocto project which use systemd as system init manager.
> But the qemu boot up and still use INIT as usual. The rootfs even fail to install systemd.
>
> I refers to yocto docs http://www.yoctoproject.org/docs/1.8/ref-manual/ref-manual.html#ref-features-distro
> I use meta/recipes-extended/images/core-image-full-cmdline.bb and add the following part
> to support systemd:
>
> DISTRO_FEATURES_append = "systemd"
space after first "
> DISTRO_FEATURES_BACKFILL_CONSIDERED = "sysvinit"
>
> Did I miss somethings ?
>
DISTRO_FEATURES_append = " systemd"
DISTRO_FEATURES_BACKFILL_CONSIDERED += "sysvinit"
VIRTUAL-RUNTIME_init_manager = "systemd"
VIRTUAL-RUNTIME_initscripts = "systemd-compat-units"
> Any help would be appreciated.
>
> Jin
>
>
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: how to use systemd as system init manager
2015-12-25 5:55 ` Khem Raj
@ 2015-12-26 1:57 ` Jin Li
2015-12-26 2:00 ` Khem Raj
0 siblings, 1 reply; 5+ messages in thread
From: Jin Li @ 2015-12-26 1:57 UTC (permalink / raw)
To: Khem Raj; +Cc: yocto@yoctoproject.org
On 2015/12/25 13:55, Khem Raj wrote:
> On Thu, Dec 24, 2015 at 5:59 PM, Jin Li <lijin14@huawei.com> wrote:
>> Hi,
>>
>> I am trying to build yocto project which use systemd as system init manager.
>> But the qemu boot up and still use INIT as usual. The rootfs even fail to install systemd.
>>
>> I refers to yocto docs http://www.yoctoproject.org/docs/1.8/ref-manual/ref-manual.html#ref-features-distro
>> I use meta/recipes-extended/images/core-image-full-cmdline.bb and add the following part
>> to support systemd:
>>
>> DISTRO_FEATURES_append = "systemd"
>
> space after first "
>
>> DISTRO_FEATURES_BACKFILL_CONSIDERED = "sysvinit"
>>
>> Did I miss somethings ?
>>
>
> DISTRO_FEATURES_append = " systemd"
> DISTRO_FEATURES_BACKFILL_CONSIDERED += "sysvinit"
> VIRTUAL-RUNTIME_init_manager = "systemd"
> VIRTUAL-RUNTIME_initscripts = "systemd-compat-units"
>
Hi Raj
I used add the above code in meta/recipes-extended/images/core-image-full-cmdline.bb to
build image with systemd, but still get the same result - get no systemd installed in rootfs image and
system use "INIT" as usual as follows:
$ runqemu qemuarm64
...
root@qemuarm64:~# systemctl
-sh: systemctl: command not found
root@qemuarm64:~#
root@qemuarm64:~# ps aux | grep init
root 1 5.1 0.2 1764 1176 ? Ss 01:57 0:04 init [5]
Regards,
Jin
>
>> Any help would be appreciated.
>>
>> Jin
>>
>>
>> --
>> _______________________________________________
>> yocto mailing list
>> yocto@yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/yocto
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: how to use systemd as system init manager
2015-12-26 1:57 ` Jin Li
@ 2015-12-26 2:00 ` Khem Raj
2015-12-26 5:43 ` Jin Li
0 siblings, 1 reply; 5+ messages in thread
From: Khem Raj @ 2015-12-26 2:00 UTC (permalink / raw)
To: Jin Li; +Cc: yocto
[-- Attachment #1: Type: text/plain, Size: 1849 bytes --]
Put that in local.conf not in image recipe
On Dec 25, 2015 5:57 PM, "Jin Li" <lijin14@huawei.com> wrote:
> On 2015/12/25 13:55, Khem Raj wrote:
> > On Thu, Dec 24, 2015 at 5:59 PM, Jin Li <lijin14@huawei.com> wrote:
> >> Hi,
> >>
> >> I am trying to build yocto project which use systemd as system init
> manager.
> >> But the qemu boot up and still use INIT as usual. The rootfs even fail
> to install systemd.
> >>
> >> I refers to yocto docs
> http://www.yoctoproject.org/docs/1.8/ref-manual/ref-manual.html#ref-features-distro
> >> I use meta/recipes-extended/images/core-image-full-cmdline.bb and add
> the following part
> >> to support systemd:
> >>
> >> DISTRO_FEATURES_append = "systemd"
> >
> > space after first "
> >
> >> DISTRO_FEATURES_BACKFILL_CONSIDERED = "sysvinit"
> >>
> >> Did I miss somethings ?
> >>
> >
> > DISTRO_FEATURES_append = " systemd"
> > DISTRO_FEATURES_BACKFILL_CONSIDERED += "sysvinit"
> > VIRTUAL-RUNTIME_init_manager = "systemd"
> > VIRTUAL-RUNTIME_initscripts = "systemd-compat-units"
> >
>
> Hi Raj
>
> I used add the above code in meta/recipes-extended/images/
> core-image-full-cmdline.bb to
> build image with systemd, but still get the same result - get no systemd
> installed in rootfs image and
> system use "INIT" as usual as follows:
>
> $ runqemu qemuarm64
> ...
>
> root@qemuarm64:~# systemctl
> -sh: systemctl: command not found
> root@qemuarm64:~#
> root@qemuarm64:~# ps aux | grep init
> root 1 5.1 0.2 1764 1176 ? Ss 01:57 0:04 init [5]
>
> Regards,
>
> Jin
>
> >
> >> Any help would be appreciated.
> >>
> >> Jin
> >>
> >>
> >> --
> >> _______________________________________________
> >> yocto mailing list
> >> yocto@yoctoproject.org
> >> https://lists.yoctoproject.org/listinfo/yocto
> >
> >
>
>
>
[-- Attachment #2: Type: text/html, Size: 2948 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: how to use systemd as system init manager
2015-12-26 2:00 ` Khem Raj
@ 2015-12-26 5:43 ` Jin Li
0 siblings, 0 replies; 5+ messages in thread
From: Jin Li @ 2015-12-26 5:43 UTC (permalink / raw)
To: Khem Raj; +Cc: yocto
On 2015/12/26 10:00, Khem Raj wrote:
> Put that in local.conf not in image recipe
Raj,
It works well now.
Cheers,
Jin
>
> On Dec 25, 2015 5:57 PM, "Jin Li" <lijin14@huawei.com <mailto:lijin14@huawei.com>> wrote:
>
> On 2015/12/25 13:55, Khem Raj wrote:
> > On Thu, Dec 24, 2015 at 5:59 PM, Jin Li <lijin14@huawei.com <mailto:lijin14@huawei.com>> wrote:
> >> Hi,
> >>
> >> I am trying to build yocto project which use systemd as system init manager.
> >> But the qemu boot up and still use INIT as usual. The rootfs even fail to install systemd.
> >>
> >> I refers to yocto docs http://www.yoctoproject.org/docs/1.8/ref-manual/ref-manual.html#ref-features-distro
> >> I use meta/recipes-extended/images/core-image-full-cmdline.bb <http://core-image-full-cmdline.bb> and add the following part
> >> to support systemd:
> >>
> >> DISTRO_FEATURES_append = "systemd"
> >
> > space after first "
> >
> >> DISTRO_FEATURES_BACKFILL_CONSIDERED = "sysvinit"
> >>
> >> Did I miss somethings ?
> >>
> >
> > DISTRO_FEATURES_append = " systemd"
> > DISTRO_FEATURES_BACKFILL_CONSIDERED += "sysvinit"
> > VIRTUAL-RUNTIME_init_manager = "systemd"
> > VIRTUAL-RUNTIME_initscripts = "systemd-compat-units"
> >
>
> Hi Raj
>
> I used add the above code in meta/recipes-extended/images/core-image-full-cmdline.bb <http://core-image-full-cmdline.bb> to
> build image with systemd, but still get the same result - get no systemd installed in rootfs image and
> system use "INIT" as usual as follows:
>
> $ runqemu qemuarm64
> ...
>
> root@qemuarm64:~# systemctl
> -sh: systemctl: command not found
> root@qemuarm64:~#
> root@qemuarm64:~# ps aux | grep init
> root 1 5.1 0.2 1764 1176 ? Ss 01:57 0:04 init [5]
>
> Regards,
>
> Jin
>
> >
> >> Any help would be appreciated.
> >>
> >> Jin
> >>
> >>
> >> --
> >> _______________________________________________
> >> yocto mailing list
> >> yocto@yoctoproject.org <mailto:yocto@yoctoproject.org>
> >> https://lists.yoctoproject.org/listinfo/yocto
> >
> >
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-12-26 5:44 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-25 1:59 how to use systemd as system init manager Jin Li
2015-12-25 5:55 ` Khem Raj
2015-12-26 1:57 ` Jin Li
2015-12-26 2:00 ` Khem Raj
2015-12-26 5:43 ` Jin Li
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.