]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
systemd: use if..then in prerm scriptlet
authorDaniel McGregor <daniel.mcgregor@vecima.com>
Tue, 23 Sep 2025 19:01:46 +0000 (13:01 -0600)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 25 Sep 2025 09:57:21 +0000 (10:57 +0100)
commita5327fc16b76db28dd1da37463a046e69713dbac
treea42766038b54575318c4ad45281e9af3319cac61
parent523001d3131eb5839162d44d296b65cbf0f6fd56
systemd: use if..then in prerm scriptlet

Using the [ test ] && foo construct in the prerm scriptlet causes
the prerm scriptlet to fail if the final test condition fails, which
with rpm prevents the removal of the package. Switch to using
if;then;fi instead, since it doesn't cause the scriptlet to fail.

Signed-off-by: Daniel McGregor <daniel.mcgregor@vecima.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-recipe/systemd.bbclass