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

snapcraft/commands: Fix check for first execution during daemon start #532

Merged
merged 1 commit into from
Jul 26, 2024

Conversation

boltmark
Copy link
Contributor

@boltmark boltmark commented Jul 25, 2024

This PR adjusts the point at which we check if it is the first lxd start in daemon.start. We are currently making this check after we begin the process of starting lxd, which means the check will always fail. This PR ensures we make the check before we start lxd.

Fixes canonical/lxd#13818.

@tomponline
Copy link
Member

@boltmark should this just be a revert of 14cf45b instead of a new commit?

@tomponline
Copy link
Member

@boltmark please can you add a test for this behaviour to lxd-ci , https:/canonical/lxd-ci/blob/main/tests/snapd looks relevant place.

@simondeziel please can you ensure this is included in your 5.0 core22 PR in case the bug commit has been included. Ta

This reverts commit 14cf45b.

Signed-off-by: Mark Bolton <[email protected]>
@boltmark
Copy link
Contributor Author

@boltmark should this just be a revert of 14cf45b instead of a new commit?

Ah yes, thanks. Pushed the revert.

@tomponline tomponline merged commit d34d19b into canonical:latest-edge Jul 26, 2024
5 checks passed
@tomponline
Copy link
Member

Thanks! just the lxd-ci test for this now then please

tomponline added a commit that referenced this pull request Aug 20, 2024
- Fix Dell Powerflex migrations from
canonical/lxd#13934
- Fix snap preseed support from
#532
- Fix snapshot importing from
canonical/lxd#13899
tomponline added a commit that referenced this pull request Aug 20, 2024
- Fix Dell Powerflex migrations from
canonical/lxd#13934
- Fix snap preseed support from
#532
- Fix snapshot importing from
canonical/lxd#13899
- Vendor apparmor and cherry-pick Oracular container fixes from
#534
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.

Setting preseed through daemon.preseed fails on Ubuntu Core
2 participants