]> code.ossystems Code Review - openembedded-core.git/commit
systemd: avoid failing if no udev rules provided
authorPeter Bergin <peter@berginkonsult.se>
Tue, 15 Sep 2020 19:33:05 +0000 (21:33 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 16 Sep 2020 13:01:51 +0000 (14:01 +0100)
commitc65eb4c38b61509ad38da19b986e0f06923f0cea
tree09158017968683840a655e74589e2128e87f1e24
parent431a7dfc6c1c86ead3e636d42e2bf1f1f906588c
systemd: avoid failing if no udev rules provided

In the case when no udev rules are provided by the recipe the do_install
step of systemd is failing with:

    install: cannot stat '<WORKDIR>/*.rules': No such file or directory

By default the systemd recipe provides touchscreen.rules but in the
case this is unwanted on target the install step fails. This solution
is dynamic and search for *.rules files in $WORKDIR. If found they are
installed.

Signed-off-by: Peter Bergin <peter@berginkonsult.se>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/systemd/systemd_246.2.bb