Skip to content

feat: Include image inside container#16

Merged
kroese merged 3 commits into
masterfrom
dev
Jun 4, 2026
Merged

feat: Include image inside container#16
kroese merged 3 commits into
masterfrom
dev

Conversation

@kroese
Copy link
Copy Markdown

@kroese kroese commented Jun 4, 2026

No description provided.

Copilot AI review requested due to automatic review settings June 4, 2026 16:23
@kroese kroese merged commit 6431790 into master Jun 4, 2026
2 checks passed
@kroese kroese deleted the dev branch June 4, 2026 16:23
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR aims to bundle the ZimaOS installer image into the container at build time and have the runtime install logic prefer that baked-in image when present, reducing reliance on downloading the image at container startup.

Changes:

  • Add a build-time download of the installer QCOW2 into the image (/img.qcow2) via the Dockerfile.
  • Update install flow to copy and boot from /img.qcow2 when available.
  • Redirect QEMU stdin to /dev/null when running in the background to avoid stdin-related hangs.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
src/install.sh Prefer a baked-in QCOW2 image (/img.qcow2) as the boot source when no user-provided boot image is found.
src/entry.sh Ensures background QEMU doesn’t read from stdin by redirecting stdin from /dev/null.
Dockerfile Adds a build-time step to include the installer QCOW2 inside the container filesystem.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/install.sh
Comment on lines +130 to +134
if [ -s /img.qcow2 ]; then
cp /img.qcow2 "$STORAGE/"
! bootFile "$STORAGE/img.qcow2" && exit 61
return 0
fi
Comment thread Dockerfile
Comment on lines +21 to 22
ADD "https://github.com/zima-os/images/releases/download/v${VERSION_ARG}/zimaos-x86_64-${VERSION_ARG}_installer.qcow2" /img.qcow2
COPY --chmod=755 ./src /run/
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.

2 participants