Improve volume matching on macOS and fix snapshot-based volume handling on macOS - #21
Open
wknapik wants to merge 16 commits into
Open
Improve volume matching on macOS and fix snapshot-based volume handling on macOS#21wknapik wants to merge 16 commits into
wknapik wants to merge 16 commits into
Conversation
wknapik
marked this pull request as ready for review
August 15, 2026 04:28
There was a problem hiding this comment.
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_profilerNVMe inventory and APFS container mapping. - Generate a random volume name for
diskutil eraseDiskon 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.
wknapik
enabled auto-merge (squash)
August 15, 2026 12:45
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.