All of lore.kernel.org
 help / color / mirror / Atom feed
From: "David Wang (王振宇)" <DavidWang@quantatw.com>
To: "openbmc@lists.ozlabs.org" <openbmc@lists.ozlabs.org>
Subject: RE: SYSTEMD_OVERRIDE do not install into image
Date: Fri, 11 Jun 2021 10:10:17 +0000	[thread overview]
Message-ID: <HK0PR04MB27373E988FB708414A9541ACC9349@HK0PR04MB2737.apcprd04.prod.outlook.com> (raw)
In-Reply-To: <HK0PR04MB273730C0DEBB24EE4A435477C9349@HK0PR04MB2737.apcprd04.prod.outlook.com>

Found the root cause.
xyz.openbmc_project.LED.GroupManager.service is installed by Yocto, but xyz.openbmc_project.Network.service is installed by meson, so it can't be modified with SYSTEMD_OVERRIDE.
It packs the conf file because I didn't clean up the package before rebuilding.
Alternative method:
FILES_${PN} += " \
	${systemd_system_unitdir}/xyz.openbmc_project.Network.service.d/service-override.conf"
do_install_append() {
    install -d ${D}${systemd_system_unitdir}/xyz.openbmc_project.Network.service.d
    install -m 0644 ${WORKDIR}/service-override.conf \
		${D}${systemd_system_unitdir}/xyz.openbmc_project.Network.service.d/
}

> -----Original Message-----
> From: David Wang (王振宇)
> Sent: Friday, June 11, 2021 1:56 PM
> To: openbmc@lists.ozlabs.org
> Subject: SYSTEMD_OVERRIDE do not install into image
> 
> Hi all,
> 
> I have written SYSTEMD_OVERRIDE into the bbappend file, and bitbake does
> package a conf file, But the conf file is not installed in obmc-phosphor-image.
> Am I missing any steps? I used the same method to overwrite
> LED.GroupManager.service and it succeeded What makes these different?
> Please leave any comments, thank you.
> 
> SYSTEMD_OVERRIDE_${PN} += "
> service-override.conf:xyz.openbmc_project.Network.service.d/service-overrid
> e.conf"
> 
> armv7a-openbmc-linux-gnueabi/phosphor-network/1.0+gitAUTOINC+fc3aff91
> 65-r1/package/lib$ tree └── systemd
>     ├── system
>     │   ├── xyz.openbmc_project.Network.service
>     │   └── xyz.openbmc_project.Network.service.d
>     │       └── service-override.conf
> 
> obmc-phosphor-image/1.0-r0/rootfs/lib/systemd/system$ ls xyz*service.d -dl
> drwxr-xr-x 2 user user 4096  11 13:33
> xyz.openbmc_project.LED.GroupManager.service.d
> 
> 
> Best Regards,
> David
> 


      reply	other threads:[~2021-06-11 10:10 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-11  5:56 SYSTEMD_OVERRIDE do not install into image David Wang (王振宇)
2021-06-11 10:10 ` David Wang (王振宇) [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=HK0PR04MB27373E988FB708414A9541ACC9349@HK0PR04MB2737.apcprd04.prod.outlook.com \
    --to=davidwang@quantatw.com \
    --cc=openbmc@lists.ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.