Skip to content

Instantly share code, notes, and snippets.

@bh7cw
Created September 8, 2020 19:00
Show Gist options
  • Save bh7cw/6ac27653d19815304332277ff2aacdb8 to your computer and use it in GitHub Desktop.
Save bh7cw/6ac27653d19815304332277ff2aacdb8 to your computer and use it in GitHub Desktop.
{
"ignition": {
"version": "3.1.0"
},
"passwd": {
"users": [
{
"groups": [
"sudo"
],
"name": "core",
"sshAuthorizedKeys": [
"ssh-rsa AAAAB3NzaC1yc..."
]
},
{
"groups": [
"sudo"
],
"name": "test",
"sshAuthorizedKeys": [
"ssh-rsa AAAAB3NzaC1yc..."
]
}
]
},
"systemd": {
"units": [
{
"dropins": [
{
"contents": "[Service]\n# Override Execstart in main unit\nExecStart=\n# Add new Execstart with `-` prefix to ignore failure\nExecStart=-/usr/sbin/agetty --autologin core --noclear %I $TERM\nTTYVTDisallocate=no\n",
"name": "autologin-core.conf"
}
],
"name": "serial-getty@ttyS0.service"
},
{
"enabled": true,
"name": "afterburn-sshkeys@test.service"
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment