Skip to content

Improve volume matching on macOS and fix snapshot-based volume handling on macOS - #21

Open
wknapik wants to merge 16 commits into
mainfrom
wknapik-macos-volume-matching
Open

Improve volume matching on macOS and fix snapshot-based volume handling on macOS#21
wknapik wants to merge 16 commits into
mainfrom
wknapik-macos-volume-matching

Conversation

@wknapik

@wknapik wknapik commented Aug 15, 2026

Copy link
Copy Markdown
Collaborator

Snapshot-based volumes retain the origin volume name, so that's not a reliable way to match the AWS-level device to the macOS-level device.

Found a more reliable way to make the connection.

This PR also fixes handling of snapshot-based volumes on macOS.

@wknapik wknapik self-assigned this Aug 15, 2026
@wknapik
wknapik marked this pull request as ready for review August 15, 2026 04:28
@wknapik
wknapik requested a review from mihaiplesa as a code owner August 15, 2026 04:28
@mihaiplesa
mihaiplesa requested a balanced review from Copilot August 15, 2026 08:46

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

This PR updates the macOS (Darwin) volume-to-disk resolution and formatting/mounting flow to avoid relying on the EBS volume ID as a disk label, and updates documentation/sudoers guidance accordingly.

Changes:

  • Resolve macOS disks via system_profiler NVMe inventory and APFS container mapping.
  • Generate a random volume name for diskutil eraseDisk on macOS and adjust mounting to use device paths.
  • Update README disclaimer and tighten/adjust sudoers command aliases for the new behavior.

Reviewed changes

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

File Description
vol Reworks macOS disk discovery and changes format/mount behavior to use device nodes and random volume names.
README.md Updates disclaimer text and adapts sudoers regexes to the new diskutil invocation patterns.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread vol
Comment thread vol Outdated
Comment thread vol
Comment thread vol
Comment thread vol
Comment thread vol Outdated
Comment thread README.md
Comment thread README.md
@wknapik
wknapik enabled auto-merge (squash) August 15, 2026 12:45
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