fix: set app user shell to /bin/bash so VSCode terminals work #9

Merged
cpfarhood merged 1 commits from fix/app-user-shell into main 2026-02-20 12:51:35 +00:00
cpfarhood commented 2026-02-20 12:50:34 +00:00 (Migrated from github.com)

Summary

baseimage-gui creates the app user (UID 1000) at container runtime with shell=/sbin/nologin and home=/dev/null. VSCode sees this in /etc/passwd and tries to spawn /sbin/nologin as the terminal, giving:

The terminal process "/sbin/nologin" failed to launch (exit code: 1)

Adds scripts/cont-init-user.sh copied to /etc/cont-init.d/20-fix-user-shell.sh. This runs as root after baseimage-gui's 10-adduser.sh step and sets:

  • shell → /bin/bash
  • home → /home/user

Test plan

  • Merge, bounce pods
  • Open terminal in VSCode — should launch bash successfully
  • happy auth login should now work from the VSCode terminal

🤖 Generated with Claude Code
via Happy

## Summary `baseimage-gui` creates the `app` user (UID 1000) at container runtime with `shell=/sbin/nologin` and `home=/dev/null`. VSCode sees this in `/etc/passwd` and tries to spawn `/sbin/nologin` as the terminal, giving: > The terminal process "/sbin/nologin" failed to launch (exit code: 1) Adds `scripts/cont-init-user.sh` copied to `/etc/cont-init.d/20-fix-user-shell.sh`. This runs as root after baseimage-gui's `10-adduser.sh` step and sets: - shell → `/bin/bash` - home → `/home/user` ## Test plan - [ ] Merge, bounce pods - [ ] Open terminal in VSCode — should launch bash successfully - [ ] `happy auth login` should now work from the VSCode terminal 🤖 Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering)
Sign in to join this conversation.