mirror of
https://github.com/lxc/distrobuilder.git
synced 2026-02-05 06:45:19 +01:00
systemd-generator: Fix console-getty handling
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user