Skip to content

Fix Alpine guest-tools hang on setup-apkrepos - #56

Merged
cursor[bot] merged 2 commits into
mainfrom
cursor/alpine-skip-hanging-setup-apkrepos-3e81
Aug 7, 2026
Merged

Fix Alpine guest-tools hang on setup-apkrepos#56
cursor[bot] merged 2 commits into
mainfrom
cursor/alpine-skip-hanging-setup-apkrepos-3e81

Conversation

@Narehood

@Narehood Narehood commented Aug 7, 2026

Copy link
Copy Markdown
Owner

Summary

setup-apkrepos -c was hanging indefinitely during Alpine initial config (interactive mirror selection), so guest-tools setup never progressed past “Enabling Alpine community repository via setup-apkrepos...”.

Fix

Stop calling setup-apkrepos. Enable vX.Y/community and the tagged @edge community overlay by editing /etc/apk/repositories directly, then continue installing xe-guest-utilities.

Ctrl+C the stuck process on the host, pull this update, and re-run Server Initial Config.

Open in Web Open in Cursor 

Summary by CodeRabbit

  • Bug Fixes
    • Improved Alpine server setup by configuring package repositories directly, avoiding unreliable repository setup commands.
    • Updated the installer version to 1.2.3.
    • Updated the installer’s integrity checksum.

cursoragent and others added 2 commits August 7, 2026 16:22
Edit apk repositories directly instead of calling setup-apkrepos -c,
which can block indefinitely waiting for interactive mirror selection.

Co-authored-by: Michael <Narehood@users.noreply.github.com>
Co-authored-by: Michael <Narehood@users.noreply.github.com>
@cursor
cursor Bot merged commit 81e2ca4 into main Aug 7, 2026
2 checks passed
@cursor
cursor Bot deleted the cursor/alpine-skip-hanging-setup-apkrepos-3e81 branch August 7, 2026 16:25
@coderabbitai

coderabbitai Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 2e838b5a-f655-43b2-aff2-3c761552b2be

📥 Commits

Reviewing files that changed from the base of the PR and between 6c26ff0 and 630830d.

📒 Files selected for processing (3)
  • Installers/.checksums.sha256
  • Installers/serverSetup.sh
  • tests/server-setup-alpine.sh

📝 Walkthrough

Walkthrough

The installer version changes to 1.2.3. Alpine repository setup now edits /etc/apk/repositories directly. Tests reject setup-apkrepos -c, and the recorded installer checksum is updated.

Changes

Alpine repository setup

Layer / File(s) Summary
Direct Alpine repository configuration
Installers/serverSetup.sh, Installers/.checksums.sha256
The installer removes the setup-apkrepos -c fallback path, increments SCRIPT_VERSION to 1.2.3, and records the new checksum.
Alpine setup test coverage
tests/server-setup-alpine.sh
The test expects direct repository-file editing, rejects obsolete command usage, and removes the obsolete stub.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

  • Narehood/VM-Setup#48: Updates the Alpine repository setup logic in Installers/serverSetup.sh.
  • Narehood/VM-Setup#55: Modifies the Alpine repository setup and tests for direct repository-file editing.

Suggested reviewers: cursoragent

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch cursor/alpine-skip-hanging-setup-apkrepos-3e81

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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