Skip to content

fix: adam SSH keys, module ordering, non-interactive prompt#80

Merged
adamamyl merged 1 commit into
mainfrom
fix/adam-ssh-keys
Jun 20, 2026
Merged

fix: adam SSH keys, module ordering, non-interactive prompt#80
adamamyl merged 1 commit into
mainfrom
fix/adam-ssh-keys

Conversation

@adamamyl

Copy link
Copy Markdown
Owner

Summary

  • setup_machine.py: call install_mapped_ssh_keys for adam alongside root — was never called, leaving adam with only the cloud-init bootstrap key
  • setup_machine.py: move docker after pseudohome/no2id — all user accounts fully configured before docker adds group membership (safe: users_to_groups_if_needed creates the docker group if missing)
  • repo_utils.py: detect TTY before calling input() — cloud-init has no interactive terminal so input() would hang; log a warning with instructions instead

Test plan

  • New VM: ~adam/.ssh/authorized_keys matches ~root/.ssh/authorized_keys
  • Non-interactive run (cloud-init): key prompt logs warning instead of hanging
  • Docker group membership still applied correctly after pseudohome setup

🤖 Generated with Claude Code

https://claude.ai/code/session_01P4Hxvsa529m9F6d6dxLCiG

cloud-init has no interactive terminal; input() hangs forever or returns
immediately with no user interaction. Detect TTY and log a warning with
instructions instead of blocking.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01P4Hxvsa529m9F6d6dxLCiG
@adamamyl adamamyl merged commit 48fd363 into main Jun 20, 2026
1 of 3 checks passed
@adamamyl adamamyl deleted the fix/adam-ssh-keys branch June 20, 2026 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant