zram: fix RDEPENDS for systemd service

This attempted to pull in the entirety of util-linux when systemd is
selected. That falls apart when building with `NO_RECOMMENDATIONS = "1"`
as util-linux only weakly recommends util-linux-zramctl.

Hence, we want to pull that in explicitly.

Signed-off-by: Erik Schilling <erik@riscstar.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Erik Schilling 2025-04-25 20:49:37 +02:00 committed by Khem Raj
parent a056a834c4
commit 4aa12df389
No known key found for this signature in database
GPG Key ID: BB053355919D3314

View File

@ -4,8 +4,8 @@ LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda
inherit update-rc.d systemd
RDEPENDS:${PN} = "kmod \
${@bb.utils.contains('DISTRO_FEATURES','systemd','util-linux','util-linux-swaponoff',d)}"
RDEPENDS:${PN} = "kmod util-linux-swaponoff \
${@bb.utils.contains('DISTRO_FEATURES','systemd','util-linux-zramctl','',d)}"
RRECOMMENDS:${PN} = "kernel-module-zram"