From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 0FAE2E00D23; Fri, 25 Dec 2015 21:44:08 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/, * medium trust * [119.145.14.65 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [119.145.14.65]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id E75D2E0088C for ; Fri, 25 Dec 2015 21:44:03 -0800 (PST) Received: from 172.24.1.51 (EHLO szxeml425-hub.china.huawei.com) ([172.24.1.51]) by szxrg02-dlp.huawei.com (MOS 4.3.7-GA FastPath queued) with ESMTP id CYS88530; Sat, 26 Dec 2015 13:43:57 +0800 (CST) Received: from [127.0.0.1] (10.177.34.120) by szxeml425-hub.china.huawei.com (10.82.67.180) with Microsoft SMTP Server id 14.3.235.1; Sat, 26 Dec 2015 13:43:52 +0800 Message-ID: <567E2917.50205@huawei.com> Date: Sat, 26 Dec 2015 13:43:51 +0800 From: Jin Li User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: Khem Raj References: <567CA2F0.5000201@huawei.com> <567DF401.50902@huawei.com> In-Reply-To: X-Originating-IP: [10.177.34.120] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A090202.567E291E.0049, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0, ip=0.0.0.0, so=2013-06-18 04:22:30, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: 79d6cd21562ea3ede58ccd28c40c30ab Cc: yocto@yoctoproject.org Subject: Re: how to use systemd as system init manager X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of all things Yocto Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Dec 2015 05:44:08 -0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit 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" > wrote: > > On 2015/12/25 13:55, Khem Raj wrote: > > On Thu, Dec 24, 2015 at 5:59 PM, Jin Li > 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 > > > > > >