1
0
mirror of https://github.com/lxc/distrobuilder.git synced 2026-02-05 15:46:17 +01:00

systemd-generator: Fix console-getty handling

Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
This commit is contained in:
Stéphane Graber
2025-10-13 01:58:40 -04:00
parent a3072be2ef
commit d0e0b68a62

View File

@@ -240,3 +240,15 @@ for d in /etc/systemd/system /usr/lib/systemd/system /lib/systemd/system; do
fi
done
done
# Fix issue with console-getty on recent systemd.
if [ "${SYSTEMD}" -ge 258 ]; then
mkdir -p "/run/systemd/system/console-getty.service.d/"
cat <<-EOF > /run/systemd/system/console-getty.service.d/override.conf
[Service]
ExecStart=
ExecStart=-/sbin/agetty -o '-- \\u' --noreset --noclear --keep-baud 115200,57600,38400,9600 console
StandardInput=null
StandardOutput=null
EOF
fi