mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-05-03 23:04:53 -04:00
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:
parent
a295ecaffb
commit
1f887c7868
5 changed files with 16 additions and 32 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue