Skip to content

docs: snapctl mount handling in SNAP_DATA across snap refresh - #516

Merged
Mohit-Chachada merged 2 commits into
canonical:mainfrom
Mohit-Chachada:refresh-with-mounts-in-snap-data
Aug 18, 2026
Merged

docs: snapctl mount handling in SNAP_DATA across snap refresh#516
Mohit-Chachada merged 2 commits into
canonical:mainfrom
Mohit-Chachada:refresh-with-mounts-in-snap-data

Conversation

@Mohit-Chachada

@Mohit-Chachada Mohit-Chachada commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

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

This PR updates the snapctl documentation to clarify how mounts behave when placed under SNAP_DATA, and what snap developers need to do to keep such mounts working across snap refreshes (which switch SNAP_DATA to a new revision-specific path).

Changes:

  • Added a new “Mounts in SNAP_DATA and snap refreshes” subsection under the mount-control documentation.
  • Documented recommended pre-refresh/post-refresh hook handling with example snapctl umount and snapctl mount commands.
  • Noted that SNAP_COMMON is revision-independent and does not require the same handling.

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

Comment thread docs/how-to-guides/snap-development/use-snapctl.md Outdated

@bboozzoo bboozzoo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM, but see the comment I left about the post refresh hook

Co-authored-by: Maciej Borzecki <maciek.borzecki@gmail.com>
@Mohit-Chachada
Mohit-Chachada merged commit 4662c17 into canonical:main Aug 18, 2026
2 checks passed
@Mohit-Chachada
Mohit-Chachada deleted the refresh-with-mounts-in-snap-data branch August 18, 2026 08:20
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.

3 participants