mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
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
6a0296701e
commit
cdcb6dd871
@ -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
|
@ -135,6 +135,7 @@ attestation_variant_settings = {
|
||||
|
||||
stream_settings = {
|
||||
"console": {
|
||||
"kernel_command_line": "constellation.console",
|
||||
},
|
||||
"debug": {
|
||||
"kernel_command_line": "constellation.debug",
|
||||
|
Loading…
Reference in New Issue
Block a user