-
Notifications
You must be signed in to change notification settings - Fork 307
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
ostree admin kargs edit-in-place fails with error: Attempting to remove booted deployment
#2664
Comments
CC @HuijingHei |
Thanks @travier for your info, I will look at it |
Can reproduce when install new ostree-0.15.0.4.g0d911bf9-2.fc36.x86_64.rpm with 36.20220618.1.1
The error is similar with #2599. |
OK right, I think we lost the thread/issue about the main API Hmm can you test out this patch?
Right now the unit tests don't actually appear booted, so to cover this path we'll want to add a test case to |
Thanks @cgwalters, I will try |
Build ostree refer to https://ostreedev.github.io/ostree/contributing-tutorial/#testing-in-a-container, and with patch #2669
Test locally it works. |
Add func to set kernel arguments in place, instead of create new deployment Fix ostreedev#2664
@cgwalters how about adding test into https://github.com/coreos/fedora-coreos-config instead of |
Yes, this is the long-running tension between "tests in the project git" versus "centralized tests". We have a good issue for this somewhere.. Ah ah no wait I found it: coreos/fedora-coreos-config#677 The core problem here is that if you try to add a test to fedora-coreos-config right now, it will start failing because ostree doesn't have the fix. Also, logically speaking, this is an ostree bug fix independent of Fedora CoreOS; and it'd be good to have our tests at least in theory be executable on other test frameworks and platforms. |
Yes, you are correct. |
Add func to set kernel arguments in place, instead of create new deployment Fix ostreedev#2664
OK, I will add test in |
Add func to set kernel arguments in place, instead of create new deployment Fix ostreedev#2664
Add func to set kernel arguments in place, instead of create new deployment Fix ostreedev#2664
Add func to set kernel arguments in place, instead of create new deployment Fix ostreedev#2664
I'm testing this right now, looks like this is working for me. Thanks! |
Hum, this fails when we have pending deployments:
|
Moved to #2679 |
It works without pending deployment. |
Tested using ostree from https://download.copr.fedorainfracloud.org/results/@CoreOS/continuous/fedora-36-x86_64/04587999-ostree/, on a Fedora Silverblue 36 system.
Preparation:
Error:
Other info:
References:
ostree admin kargs edit-in-place
to update all existing deployments in place #2617ostree admin kargs edit-in-place
to update all existing deployments in place #2639The text was updated successfully, but these errors were encountered: