Skip to content

fix: use login shell PATH for Incus VM commands#14

Merged
ethannortharc merged 1 commit intomainfrom
fix/incus-login-shell-path
Mar 11, 2026
Merged

fix: use login shell PATH for Incus VM commands#14
ethannortharc merged 1 commit intomainfrom
fix/incus-login-shell-path

Conversation

@ethannortharc
Copy link
Copy Markdown
Owner

Summary

  • Use bash -lc instead of bare bash -c or direct commands for all non-provisioning VM commands
  • Fixes zellij not auto-starting (which zellij failed without NixOS PATH)
  • Fixes HOME detection falling back to /home/dev (getent not found without PATH)
  • Fixes zellij "permission denied" on /home/dev/.cache/zellij/ (wrong HOME)

Test plan

  • devbox shell hive-dev auto-starts zellij with default layout
  • No "ERROR IN PLUGIN" or permission denied errors in zellij

🤖 Generated with Claude Code

incus exec provides a bare shell without NixOS profile, so commands like
`which zellij`, `getent`, and `awk` fail. Use `bash -lc` for all
non-provisioning VM commands to get the login shell PATH. Also fixes
HOME detection falling back to /home/dev instead of the actual user home.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@ethannortharc ethannortharc merged commit 9251da8 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