-
Notifications
You must be signed in to change notification settings - Fork 598
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-failure: run snapd with the correct keyring mode #15079
base: master
Are you sure you want to change the base?
snap-failure: run snapd with the correct keyring mode #15079
Conversation
cmd/snap-failure/cmd_snapd.go
Outdated
// KeyringMode=shared or make the re-seeding not initialize | ||
// fdestate | ||
cmd := runCmd(snapdPath, nil, []string{"SNAPD_REVERT_TO_REV=" + prevRev, "SNAPD_DEBUG=1"}) | ||
cmd := runCmd("systemd-run", []string{"--collect", "--wait", "--property=KeyringMode=shared", fmt.Sprintf("--setenv=SNAPD_REVERT_TO_REV=%s", prevRev), "--setenv=SNAPD_DEBUG=1", "--", snapdPath}, []string{}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
--wait is from systemd 232+ and I think it should work with core18, but please double check --collect
cmd := runCmd("systemd-run", []string{"--collect", "--wait", "--property=KeyringMode=shared", fmt.Sprintf("--setenv=SNAPD_REVERT_TO_REV=%s", prevRev), "--setenv=SNAPD_DEBUG=1", "--", snapdPath}, []string{}) | |
cmd := runCmd("systemd-run", | |
[]string{"--collect", "--wait", | |
"--property=KeyringMode=shared", | |
"--setenv=SNAPD_REVERT_TO_REV="+prevRev, | |
"--setenv=SNAPD_DEBUG=1", | |
"--", snapdPath, | |
}, []string{}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bionic should have 237. And this should have been added in 236.
Mon Feb 17 14:18:02 UTC 2025 Failures:Executing:
Restoring:
|
67e7f2c
to
9a8abbf
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #15079 +/- ##
==========================================
- Coverage 78.07% 77.80% -0.27%
==========================================
Files 1182 1166 -16
Lines 157743 156826 -917
==========================================
- Hits 123154 122016 -1138
- Misses 26943 27221 +278
+ Partials 7646 7589 -57
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
No description provided.