systemd: remove console on virtual terminals

This reuses the same variable from sysvinit (USE_VT) to disable running
getty/login on virtual terminals.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
This commit is contained in:
Javier Viguera 2023-07-27 17:08:32 +02:00
parent a84d011f16
commit 19373e38f8
1 changed files with 5 additions and 0 deletions

View File

@ -20,4 +20,9 @@ do_install:append () {
SUBSYSTEM=="input", KERNEL=="event[0-9]*", ENV{ID_INPUT_TOUCHSCREEN}=="1", SYMLINK+="input/touchscreen0" SUBSYSTEM=="input", KERNEL=="event[0-9]*", ENV{ID_INPUT_TOUCHSCREEN}=="1", SYMLINK+="input/touchscreen0"
EOF EOF
fi fi
# Disable virtual terminals
if [ "${USE_VT}" = "0" ]; then
sed -i -e "/getty@.service/s,enable,disable,g" ${D}${systemd_unitdir}/system-preset/90-systemd.preset
fi
} }