Skip to content

feat: Improve entrypoint#20

Merged
kroese merged 1 commit into
masterfrom
dev
Jun 4, 2026
Merged

feat: Improve entrypoint#20
kroese merged 1 commit 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 20:07
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 refactors the container entrypoint script (src/entry.sh) to make the QEMU invocation more structured and to clarify the shutdown/exec flow.

Changes:

  • Introduces a cmd bash array for the QEMU command and reuses it for both version detection and execution.
  • Simplifies QEMU version extraction logic.
  • Replaces the one-liner conditional exec with an explicit if block and uses cmd for both exec and background execution.

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

Comment thread src/entry.sh

version=$(qemu-system-x86_64 --version | head -n 1 | cut -d '(' -f 1 | awk '{ print $NF }')
cmd=(qemu-system-x86_64)
version=$("${cmd[@]}" --version | awk 'NR==1 { print $4 }')
@kroese kroese merged commit a3d8cc5 into master Jun 4, 2026
2 checks passed
@kroese kroese deleted the dev branch June 4, 2026 20:18
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