diff options
author | Chris Laplante <mostthingsweb@gmail.com> | 2021-01-11 12:52:49 -0500 |
---|---|---|
committer | Anuj Mittal <anuj.mittal@intel.com> | 2021-01-19 11:25:13 +0800 |
commit | f4fd434292d3f2d7e4a3dd97ae55ad5714357d9f (patch) | |
tree | 1c4cc335030914a5e8fbe9bd7c5d82a21e22e252 /meta/classes | |
parent | 7d17f261347366a8723691a4a2cb77a1d5992d69 (diff) | |
download | openembedded-core-contrib-f4fd434292d3f2d7e4a3dd97ae55ad5714357d9f.tar.gz |
systemd.bbclass: improve error message when a service unit specified in SYSTEMD_SERVICE is not found
The previous message was fairly useless without diving into the bbclass.
Signed-off-by: Chris Laplante <mostthingsweb@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit ef6117b148be65536e89409a83cbfd22049c652e)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/systemd.bbclass | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes/systemd.bbclass b/meta/classes/systemd.bbclass index 9e8a82c9f1..a4bff732b9 100644 --- a/meta/classes/systemd.bbclass +++ b/meta/classes/systemd.bbclass @@ -174,7 +174,8 @@ python systemd_populate_packages() { if path_found != '': systemd_add_files_and_parse(pkg_systemd, path_found, service, keys) else: - bb.fatal("SYSTEMD_SERVICE_%s value %s does not exist" % (pkg_systemd, service)) + bb.fatal("Didn't find service unit '{0}', specified in SYSTEMD_SERVICE_{1}. {2}".format( + service, pkg_systemd, "Also looked for service unit '{0}'.".format(base) if base is not None else "")) def systemd_create_presets(pkg, action): presetf = oe.path.join(d.getVar("PKGD"), d.getVar("systemd_unitdir"), "system-preset/98-%s.preset" % pkg) |