* SYSTEMD_OVERRIDE do not install into image
@ 2021-06-11 5:56 David Wang (王振宇)
2021-06-11 10:10 ` David Wang (王振宇)
0 siblings, 1 reply; 2+ messages in thread
From: David Wang (王振宇) @ 2021-06-11 5:56 UTC (permalink / raw)
To: openbmc
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-override.conf"
armv7a-openbmc-linux-gnueabi/phosphor-network/1.0+gitAUTOINC+fc3aff9165-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
^ permalink raw reply [flat|nested] 2+ messages in thread
* RE: SYSTEMD_OVERRIDE do not install into image
2021-06-11 5:56 SYSTEMD_OVERRIDE do not install into image David Wang (王振宇)
@ 2021-06-11 10:10 ` David Wang (王振宇)
0 siblings, 0 replies; 2+ messages in thread
From: David Wang (王振宇) @ 2021-06-11 10:10 UTC (permalink / raw)
To: openbmc
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
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-06-11 10:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-11 5:56 SYSTEMD_OVERRIDE do not install into image David Wang (王振宇)
2021-06-11 10:10 ` David Wang (王振宇)
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.