diff options
| author | Ross Burton <ross.burton@arm.com> | 2025-03-03 16:15:26 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-03-06 11:16:46 +0000 |
| commit | 5935e0ab576b812109421ace647e635adb4f49dc (patch) | |
| tree | 99743fde2d429da643703c5cc41378929e6864ae /meta/recipes-core/systemd | |
| parent | 69dc1fb0115036cfb2878a315728863d3ec7bdb3 (diff) | |
| download | poky-5935e0ab576b812109421ace647e635adb4f49dc.tar.gz | |
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>
Diffstat (limited to 'meta/recipes-core/systemd')
| -rw-r--r-- | meta/recipes-core/systemd/systemd_257.3.bb | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/meta/recipes-core/systemd/systemd_257.3.bb b/meta/recipes-core/systemd/systemd_257.3.bb index 324e91e051..64fb8fe69a 100644 --- a/meta/recipes-core/systemd/systemd_257.3.bb +++ b/meta/recipes-core/systemd/systemd_257.3.bb | |||
| @@ -287,9 +287,11 @@ do_install() { | |||
| 287 | fi | 287 | fi |
| 288 | fi | 288 | fi |
| 289 | install -d ${D}/${base_sbindir} | 289 | install -d ${D}/${base_sbindir} |
| 290 | if ${@bb.utils.contains('PACKAGECONFIG', 'serial-getty-generator', 'false', 'true', d)}; then | 290 | |
| 291 | # Provided by a separate recipe | 291 | if ! ${@bb.utils.contains('PACKAGECONFIG', 'serial-getty-generator', 'true', 'false', d)}; then |
| 292 | rm ${D}${systemd_system_unitdir}/serial-getty* -f | 292 | # Remove the serial-getty generator and instead use explicit services |
| 293 | # created by the systemd-serialgetty recipe | ||
| 294 | find ${D} -name \*getty-generator\* -delete | ||
| 293 | fi | 295 | fi |
| 294 | 296 | ||
| 295 | # Provide support for initramfs | 297 | # Provide support for initramfs |
