diff options
| author | delusionalai <delusionalai@users.noreply.git.jnsn.dev> | 2026-11-16 22:09:56 +0000 |
|---|---|---|
| committer | delusionalai <delusionalai@users.noreply.git.jnsn.dev> | 2026-11-16 22:09:56 +0000 |
| commit | f2fd518c16eec93bebc846db9341ee5831a41bed (patch) | |
| tree | ac8486fdbfeff096213e2bae59e1e10c55540c38 /ci/build.yaml | |
| parent | e237acf0f5161db48b9553db541e91e02b191f97 (diff) | |
| download | devbox-f2fd518c16eec93bebc846db9341ee5831a41bed.tar.gz devbox-f2fd518c16eec93bebc846db9341ee5831a41bed.zip | |
login.sh: give nested podman the devices, modules and cgroup tree it asks for
- /dev/net/tun, which rootless podman opens for the container network, and
/dev/fuse for the fuse-overlayfs fallback. Both world-readable, since it is
the dev user who opens them; mknod alone would leave them 0600 root.
- modprobe of loop, overlay, veth and bridge. Nothing else does this: there is
no systemd in the guest, so no systemd-modules-load.service, and a kata guest
kernel does not necessarily have them built in.
- delegation of the cgroup tree. Without systemd there is no user@1000.service
and nothing performs the delegation rootless podman needs to create a cgroup
for a container, which shows up as "Failed to add conmon to cgroupfs sandbox
cgroup" and no --memory/--cpus/--pids-limit. Enabling the controllers for
children and chowning /sys/fs/cgroup is all delegation is. Guarded on
/proc/self/cgroup being 0::/, so it never hands over a host tree visible
through --cgroupns=host.
Co-Authored-By: pi <pi@pi.dev>
Diffstat (limited to 'ci/build.yaml')
0 files changed, 0 insertions, 0 deletions
