mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-03-02 11:49:33 -05:00
image: allow autologin on TTY1 for STACKIT cloud (#3499)
This commit is contained in:
parent
900fb3f88b
commit
6d7f687609
@ -3,7 +3,7 @@ Description=Export Constellation Debug Level to Environment
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/bin/bash -c "tr ' ' '\n' < /proc/cmdline | grep -q 'constellation.debug' && echo CONSTELLATION_DEBUG_FLAGS=--debug >> /run/constellation.env"
|
||||
ExecStart=/bin/bash -c "tr ' ' '\n' < /proc/cmdline | grep -q 'constel.debug' && echo CONSTELLATION_DEBUG_FLAGS=--debug >> /run/constellation.env"
|
||||
RemainAfterExit=yes
|
||||
|
||||
[Install]
|
||||
|
@ -2,7 +2,6 @@ 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,11 @@
|
||||
[Unit]
|
||||
Description=autologin
|
||||
ConditionPathExists=/proc/cmdline
|
||||
ConditionKernelCommandLine=|constel.console
|
||||
ConditionKernelCommandLine=|constel.debug
|
||||
|
||||
[Service]
|
||||
ExecStart=
|
||||
ExecStart=-/sbin/agetty -o '-p -f -- \\u' --noclear --autologin root %I $TERM
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
@ -1,8 +1,8 @@
|
||||
[Unit]
|
||||
Description=autologin
|
||||
ConditionPathExists=/proc/cmdline
|
||||
ConditionKernelCommandLine=|constellation.console
|
||||
ConditionKernelCommandLine=|constellation.debug
|
||||
ConditionKernelCommandLine=|constel.console
|
||||
ConditionKernelCommandLine=|constel.debug
|
||||
|
||||
[Service]
|
||||
ExecStart=
|
||||
|
@ -50,7 +50,7 @@ CSPS = [
|
||||
"qemu",
|
||||
]
|
||||
|
||||
base_cmdline = "selinux=1 enforcing=0 audit=0"
|
||||
base_cmdline = "selinux=1 enforcing=0 audit=0 console=tty1 console=ttyS0"
|
||||
|
||||
csp_settings = {
|
||||
"aws": {
|
||||
@ -62,20 +62,17 @@ csp_settings = {
|
||||
},
|
||||
"azure": {
|
||||
"kernel_command_line_dict": {
|
||||
"console": "ttyS0",
|
||||
"constel.csp": "azure",
|
||||
"mitigations": "auto,nosmt",
|
||||
},
|
||||
},
|
||||
"gcp": {
|
||||
"kernel_command_line_dict": {
|
||||
"console": "ttyS0",
|
||||
"constel.csp": "gcp",
|
||||
"mitigations": "auto,nosmt",
|
||||
},
|
||||
},
|
||||
"openstack": {
|
||||
"kernel_command_line": "console=tty0 console=ttyS0 console=ttyS1",
|
||||
"kernel_command_line_dict": {
|
||||
"constel.csp": "openstack",
|
||||
"kvm_amd.sev": "1",
|
||||
@ -85,9 +82,8 @@ csp_settings = {
|
||||
},
|
||||
},
|
||||
"qemu": {
|
||||
"kernel_command_line": "constellation.console", # All qemu images have console enabled independent of stream
|
||||
"kernel_command_line": "constel.console", # All qemu images have console enabled independent of stream
|
||||
"kernel_command_line_dict": {
|
||||
"console": "ttyS0",
|
||||
"constel.csp": "qemu",
|
||||
"mitigations": "auto,nosmt",
|
||||
},
|
||||
@ -135,10 +131,10 @@ attestation_variant_settings = {
|
||||
|
||||
stream_settings = {
|
||||
"console": {
|
||||
"kernel_command_line": "constellation.console",
|
||||
"kernel_command_line": "constel.console",
|
||||
},
|
||||
"debug": {
|
||||
"kernel_command_line": "constellation.debug",
|
||||
"kernel_command_line": "constel.debug",
|
||||
},
|
||||
"nightly": {},
|
||||
"stable": {},
|
||||
|
Loading…
x
Reference in New Issue
Block a user