1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-08 17:19:20 +00:00

systemd: if getty generator is disabled remove the generator, not the units

If the getty generator is disabled then it's neater to remove just the
generator tool instead of the unit files as the unit files are still
useful.

(From OE-Core rev: 2beb3170af6ebf3a6fff6953a2d48f70f61b959f)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Ross Burton
2025-03-03 16:15:26 +00:00
committed by Richard Purdie
parent 69dc1fb011
commit 5935e0ab57
+5 -3
View File
@@ -287,9 +287,11 @@ do_install() {
fi
fi
install -d ${D}/${base_sbindir}
if ${@bb.utils.contains('PACKAGECONFIG', 'serial-getty-generator', 'false', 'true', d)}; then
# Provided by a separate recipe
rm ${D}${systemd_system_unitdir}/serial-getty* -f
if ! ${@bb.utils.contains('PACKAGECONFIG', 'serial-getty-generator', 'true', 'false', d)}; then
# Remove the serial-getty generator and instead use explicit services
# created by the systemd-serialgetty recipe
find ${D} -name \*getty-generator\* -delete
fi
# Provide support for initramfs