Skip to content

guest-images: switched kernel builds to rootless podman - #55

Merged
vitalych merged 2 commits into
masterfrom
podman
Nov 7, 2026
Merged

vitalych merged 2 commits into
masterfrom
podman

Conversation

@vitalych

@vitalych vitalych commented Nov 7, 2026 •

Copy link
Copy Markdown
Member

Builds the guest kernels in rootless Podman containers.

  • Makefile: replaced the docker group check with a rootless Podman check.
  • make-kernel.sh runs as container root, which is the calling user. Removed the UID/GID arguments and the user setup, which also failed when userdel had already removed the group. A failed kernel build now stops the script instead of creating the stamp (|| echo "Build failed" removed).
  • Deleted run_as.sh. Fully qualified the base images.
  • Renamed Linux/docker/ to Linux/container/ and run-docker.sh to run-container.sh (separate commit).
  • README: Podman requirements.

Why

The container builds used Docker and required membership in the docker group, which gives root access to the host. Rootless Podman runs containers in a user namespace owned by the calling user, so it needs no group membership and no root daemon. Container root is the calling user, so files written to bind mounts belong to that user without the run_as.sh user switching.

Docker support is removed. Environments built with Docker are not migrated: delete their build folders, stamps and images, or start from a fresh environment.

Related PRs

These PRs land together:

Testing

  • s2e build, s2e image_build, and the demo image (make -f Makefile.container demo, then /demo/run.sh /demo/CADET_00001) work on a rootless Podman host.
  • s2e-env unit tests and pylint pass, including new tests for the Podman host check.
  • Not yet tested: Vagrant provisioning on the four supported boxes.

🤖 Generated with Claude Code

vitalych and others added 2 commits November 7, 2026 18:59
The kernel build runs as container root, which rootless Podman maps to the
calling user, so make-kernel.sh no longer creates a user in the container.
A failed kernel build now stops the script instead of creating the stamp.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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