test: check for binariers in [usr/][s]bin
authorLuca Boccassi <bluca@debian.org>
Tue, 22 Dec 2020 17:50:34 +0000 (17:50 +0000)
committerLuca Boccassi <bluca@debian.org>
Fri, 1 Jan 2021 21:33:16 +0000 (21:33 +0000)
commit0515e4c17d50dcdd9d903f5ac8b6d9988cb149fa
tree4632a6197d0b22a2ffb1053af26f6c6e9ef8535e
parent53a1c944805bb213cf22df0f65013dbb400d7bf5
test: check for binariers in [usr/][s]bin

The image build function greps for ExecStart lines in unit files, but some
of them (eg: systemd-firstboot) do not use a full path.
It then falls back to 'type -P' but that only works if you have the binary
installed. For optional binaries like systemd-firstboot, the installation
can then fail.

Manually check if the binary already exists in /[usr/][s]bin.
test/test-functions