]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
systemd-compat-units.bb: fix postinstall script
authorMichael Opdenacker <michael.opdenacker@bootlin.com>
Wed, 22 Nov 2023 10:23:48 +0000 (11:23 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 27 Nov 2023 22:54:31 +0000 (22:54 +0000)
commit0330331a1386fd2a34b410a7f62b29bfc8dc23c4
treef3191df3aced1c32eaa866f0e7a944770a279866
parent38e035e1165a7d58a7de8b129b3f9e4a9faa275f
systemd-compat-units.bb: fix postinstall script

This fixes an issue running "opkg upgrade" on a system with systemd
(and when there is an update to "systemd-compat-units",
for example between yocto 4.2.2 and 4.2.3):

//var/lib/opkg/info/systemd-compat-units.postinst: cd: line 3: can't cd to /etc/init.d: No such file or directory

The existence of /etc/init.d is now tested
without causing an error if doesn't exist.

Fixes [YOCTO #15292]

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/systemd/systemd-compat-units.bb