Commit 7910dde
authored
devenv: Make init script more robust for devpod environments (#92)
The remount --make-shared / only works in codespaces which have
specific Docker privileges. In devpod with rootless podman, the root
filesystem may already have shared propagation or we may not have
permission to remount.
Use findmnt -J with jq for proper JSON parsing instead of string grep.
Also add guards for:
- /dev/kvm which may not exist in all environments
- /usr/share/containers/containers.conf which may not exist
Additionally, add tmux to common packages (used by devaipod's tmux
command for split-view agent+shell sessions).
Assisted-by: OpenCode (Claude sonnet-4-20250514)
Signed-off-by: Colin Walters <walters@verbum.org>1 parent 8e5c628 commit 7910dde
2 files changed
Lines changed: 22 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | | - | |
7 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
8 | 17 | | |
9 | 18 | | |
10 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
11 | 22 | | |
12 | | - | |
13 | | - | |
14 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
15 | 18 | | |
16 | 19 | | |
17 | 20 | | |
| |||
0 commit comments