image: re-enable autologin for debug and console images (#3355)

* image: remove autologin via mkosi

In mkosi v24 --autologin no longer works for ttyS consoles. Since the CSPs use those exclusively for their serial consoles, we need to replace this with another solution (see next commit)

* image: add getty systemd unit for debug images

This replaces the mkosi --autologin solution with a getty systemd unit for ttyS0.
Note that both console and debug images hace their consoles enabled.
This commit is contained in:
3u13r 2024-09-17 14:07:28 +02:00 committed by GitHub
parent a295ecaffb
commit 1f887c7868
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 16 additions and 32 deletions

View file

@ -2,6 +2,7 @@ enable systemd-timesyncd.service
enable systemd-networkd.service
enable systemd-networkd-wait-online.service
enable configure-constel-csp.service
enable serial-getty@tty0.service
enable dbus.service
enable dbus-broker.service
enable dbus-daemon.service

View file

@ -0,0 +1,12 @@
[Unit]
Description=autologin
ConditionPathExists=/proc/cmdline
ConditionKernelCommandLine=|constellation.console
ConditionKernelCommandLine=|constellation.debug
[Service]
ExecStart=
ExecStart=-/sbin/agetty -o '-p -f -- \\u' --keep-baud --autologin root 115200,57600,38400,9600 - $TERM
[Install]
WantedBy=multi-user.target