demo: Log the agent in on the serial console only
The agents' VM also logged `agent` in on `tty1`, which nobody sees, and both login shells cloned the repository into `~/repo` at once. One could remove the directory while the other was still copying Git's hook templates into it, which failed with "cannot copy ... No such file or directory". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d012b83b30
commit
d25224c491
1 file changed
+3
@@ -67,6 +67,9 @@ in
|
||||
|
||||
users.users.agent.isNormalUser = true;
|
||||
services.getty.autologinUser = "agent";
|
||||
# The serial console is the only one `demo` shows. A second autologin on `tty1` would also run
|
||||
# the login script below, and its clone would race this one's.
|
||||
systemd.services."autovt@tty1".enable = false;
|
||||
# So `poweroff` works from the serial console
|
||||
security.polkit = {
|
||||
enable = true;
|
||||
|
||||
Reference in new issue
Block a user