Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

snap: install snapd as a snap before installing snaps if necessary #2811

Merged
merged 1 commit into from
Oct 27, 2023

Conversation

orndorffgrant
Copy link
Collaborator

Why is this needed?

If a service requires installing the core22 snap, and snapd hasn't already bootstrapped itself as a snap (like it does when installing some other snaps), then the snap install will fail. To prevent this, we check before installing the actual snap if snapd is installed as a snap. If it isn't, we run snap install snapd.

Test Steps

New integration test will pass with these changes and fail on the archive version

tox -e behave-any -- -n "snapd installed as a snap if necessary" # will pass
tox -e behave-any -- -n "snapd installed as a snap if necessary" -D install_from=archive # will fail

Checklist

  • I have updated or added any unit tests accordingly
  • I have updated or added any integration tests accordingly
  • Changes here need to be documented, and this was done in:

Does this PR require extra reviews?

  • Yes
  • No

@renanrodrigo renanrodrigo merged commit 8bc76fe into release Oct 27, 2023
20 of 24 checks passed
@renanrodrigo renanrodrigo deleted the snap-install-snapd branch October 27, 2023 14:42
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