Skip to content

Hold LXD snap after installing - #180

Merged
dmitry-lyfar merged 1 commit into
mainfrom
chore/snap-hold-lxd
Feb 9, 2026
Merged

dmitry-lyfar merged 1 commit into
mainfrom
chore/snap-hold-lxd

Conversation

@jonathan-conder

Copy link
Copy Markdown
Collaborator

@jonathan-conder jonathan-conder self-assigned this Feb 8, 2026

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

Adds a post-install/update snap “hold” for LXD to prevent immediate automatic refreshes after setup, based on canonical/setup-lxd#38.

Changes:

  • Run snap refresh --hold=24h lxd after installing/refreshing the LXD snap.
  • Update unit tests to expect the additional exec.exec invocation and argument ordering.

Reviewed changes

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

File Description
src/lxd.ts Adds a snap hold step after install/refresh to pause LXD updates for 24h.
tests/lxd.test.ts Updates assertions to include the new hold command and updated call counts.

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

Comment thread src/lxd.ts
Comment thread src/lxd.ts
@dmitry-lyfar
dmitry-lyfar merged commit 5660d5a into main Feb 9, 2026
11 checks passed
@dmitry-lyfar
dmitry-lyfar deleted the chore/snap-hold-lxd branch February 9, 2026 00:31
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