[yocto] install -m 0644 ${S}/lib/systemd/system/${PN}.service ${D}/${systemd_system_unitdir} failed to add service file to ${systemd_system_unitdir}
Jussi Kukkonen
jku at goto.fi
Wed Jul 24 02:09:43 PDT 2019
On Tue, 23 Jul 2019 at 14:48, JH <jupiter.hce at gmail.com> wrote:
>
> Hi,
>
> I set up the configuration for service files at following:
>
> SYSTEMD_SERVICE_${PN} = "${PN}.service bootstrap.service"
>
> do_install() {
> ..............
> install -d ${D}/${systemd_system_unitdir}
> install -m 0644 ${S}/lib/systemd/system/*.service
> ${D}/${systemd_system_unitdir}
> }
>
> Despite both service files are in build directory, the final image
> installation does not include those service files, appreciate anyone
> help.
Your script installs from ${S} but your explanation talks about the
build directory. Did you intend to install from ${B}?
If that's not the issue, then you want dig deeper: look in the build
logs and the package directories inside workdir: does the file
actually get installed and packaged? Is the correct package really
added to image?
HTH,
Jussi
More information about the yocto
mailing list