Skip to content

fix: remove sudo from provisioning, add PATH to user shell#12

Merged
ethannortharc merged 1 commit intomainfrom
fix/remove-sudo-provisioning
Mar 11, 2026
Merged

fix: remove sudo from provisioning, add PATH to user shell#12
ethannortharc merged 1 commit intomainfrom
fix/remove-sudo-provisioning

Conversation

@ethannortharc
Copy link
Copy Markdown
Owner

Summary

  • Remove all sudo from provisioning commands — incus exec already runs as root
  • NixOS 25.11 image has broken PAM config that makes sudo fail with "Authentication service cannot retrieve authentication info"
  • Add NixOS PATH (/run/current-system/sw/bin) to exec_as_user so user shell finds binaries
  • Fixes "Command not found" on devbox shell after provisioning

Test plan

  • devbox create --name test --tools go on Incus/Linux writes all config files successfully
  • devbox shell test opens a working shell session
  • nixos-rebuild completes with all devbox packages installed

🤖 Generated with Claude Code

incus exec already runs as root, so sudo is redundant. On NixOS 25.11,
sudo fails with PAM authentication errors, breaking all file writes.
Also set PATH in exec_as_user so NixOS binaries are found in user shell.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@ethannortharc ethannortharc merged commit b1cb4f3 into main Mar 11, 2026
0 of 2 checks passed
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