Skip to content

Commit c7f157a

Browse files
OldManYellsAtCloudrpurdie
authored andcommitted
seatd: fix packaging error with systemd DISTRO_FEATURES
The systemd unit file for this recipe is only installed in case the target system's init system is systemd. It is achieved by inspecting the VIRTUAL-RUNTIME_init_manager variable. However the systemd class was inherited unconditionally. This caused a failure in do_package task, in case systemd is present in the DISTRO_FEATURES but the system's init manager is sysvinit: in this case the systemd unit file is not installed, however systemd.bbclass is still trying to register is as a startup service. At this point it failed: ERROR: seatd-0.9.1-r0 do_package: Didn't find service unit 'seatd.service', specified in SYSTEMD_SERVICE:seatd. To avoid this, install the systemd unit file unconditionally, regardless of the used init system. Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
1 parent c507dcb commit c7f157a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

meta/recipes-core/seatd/seatd_0.9.1.bb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,8 @@ PACKAGECONFIG[systemd] = "-Dlibseat-logind=systemd,,systemd"
3535
do_install:append() {
3636
if [ "${VIRTUAL-RUNTIME_init_manager}" != "systemd" ]; then
3737
install -Dm755 ${UNPACKDIR}/init ${D}/${sysconfdir}/init.d/seatd
38-
else
39-
install -Dm644 ${S}/contrib/systemd/seatd.service ${D}${systemd_unitdir}/system/seatd.service
4038
fi
39+
install -Dm644 ${S}/contrib/systemd/seatd.service ${D}${systemd_unitdir}/system/seatd.service
4140
}
4241

4342
USERADD_PACKAGES = "${PN}"

0 commit comments

Comments
 (0)