poky/meta
Ross Burton 22f3616aad systemd: enable getty generator by default
Until recently, even when the getty generator was disabled in the
systemd recipe it was actually still active.  This was because the old
behaviour was to delete the serial-getty template unit if the generator
was disabled, but the systemd-serialgetty package shipped then shipped
the same files so the generator continued to run.  This was a bug in the
original commit[1] so this behaviour has been present since 2016.

My recent fixes[2] changed this: if the getty generator was disabled
then the generator itself is deleted. This makes the actual behaviour
match the intention, but the consequence was to demonstrate that some
modern platforms were relying on this unexpected behaviour: specifically
the genericarm64 BSP which intends to support a number of virtual and
physical boards with a number of serial console ports that are not
really suitable to be hardcoded into SERIAL_CONSOLES:

- ttyS0
- ttyAMA0 (AMBA PL011 uart)
- ttyS2 (BeagleBone Play, S0 and S1 are internal)
- hvc0 (KVM)
- ttyPS1 (AMD KV260)
- And most likely more

Restore the existing behaviour by explicitly enabling the serial getty
generator: this means that systemd will automatically bring up a getty
on the first serial console it finds.

In the future we should extend some level of dynamic console-finding to
sysvinit-based systems by searching for a console device in inittab, but
for now this reverts the unintentional regression.

[1] oe-core 2a8d0df47c9 ("systemd: make systemd-serialgetty optional")
[2] oe-core 2beb3170af6 ("systemd: if getty generator is disabled remove
    the generator, not the units")

(From OE-Core rev: 87136e18b70c0fb66d7268b30e8bc0da9268aa31)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2025-04-23 19:49:06 +01:00
..
classes classes/spdx-*.bbclass: move spdx2 specific variables out of spdx-common class 2025-03-28 11:19:40 +00:00
classes-global sanity: Check if the C++ toolchain supports --std=gnu++20 2025-03-20 17:49:16 +00:00
classes-recipe cargo.bbclass: show PACKAGECONFIG_CONFARGS in bbnote 2025-03-25 21:20:41 +00:00
conf layer.conf: Update layer series name for release 2025-03-29 15:31:15 +00:00
files overlayfs-etc: Unmount /sys and /proc before init 2025-03-27 11:19:04 +00:00
lib spdx3: support to override the version of a package in SBOM 3 2025-03-24 17:29:16 +00:00
recipes-bsp lrzsz: Fix build with gcc-15 2025-03-27 11:19:04 +00:00
recipes-connectivity iproute2: Add iptables PACKAGECONFIG knob 2025-03-24 17:29:16 +00:00
recipes-core systemd: enable getty generator by default 2025-04-23 19:49:06 +01:00
recipes-devtools rust-source: Fix remove_gcc_directory 2025-03-29 15:24:34 +00:00
recipes-extended man-db: Do not delete chatset.alias 2025-03-28 11:19:40 +00:00
recipes-gnome gsettings-desktop-schemas: update 47.1 -> 48.0 2025-03-24 17:29:16 +00:00
recipes-graphics mesa-demos: fix detection of GLX headers 2025-04-23 19:48:04 +01:00
recipes-kernel linux-yocto/6.12: cfg: fix iommu configuration for -tiny kernel 2025-04-23 19:48:04 +01:00
recipes-multimedia alsa-tools: Fix build with gcc 15 2025-03-27 11:19:03 +00:00
recipes-rt rt-tests: Fix build with glibc 2.41+ 2025-01-29 16:16:52 +00:00
recipes-sato webkitgtk: Fix build on RISCV 2025-03-24 17:29:16 +00:00
recipes-support acl: improve ptest packaging 2025-03-27 11:19:04 +00:00
site site/arm-linux: Fix typo for sizeof_char_p 2024-11-21 12:16:28 +00:00
COPYING.MIT
recipes.txt