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

Add ostree admin rollback #1808

Open
mwleeds opened this issue Jan 29, 2019 · 5 comments
Open

Add ostree admin rollback #1808

mwleeds opened this issue Jan 29, 2019 · 5 comments

Comments

@mwleeds
Copy link
Member

mwleeds commented Jan 29, 2019

After running ostree admin unlock --hotfix you are left with two deployments, the unlocked one and the locked one, the latter of which is labeled "(rollback)" in the ostree admin status output. But it's unclear how to deploy the rollback one. The man page for ostree admin deploy says it takes a refspec but the only difference between the two deployments is the deployment index.

@jlebon
Copy link
Member

jlebon commented Jan 30, 2019

Do you want to deploy a new copy of the rollback (new etc merge), or actually put back the rollback as the default? (Related: I forgot that ostree admin doesn't have rollback like in RPM-OSTree). The former is just ostree admin deploy $REFSPEC, right?

@mwleeds
Copy link
Member Author

mwleeds commented Jan 30, 2019

Do you want to deploy a new copy of the rollback (new etc merge), or actually put back the rollback as the default? (Related: I forgot that ostree admin doesn't have rollback like in RPM-OSTree). The former is just ostree admin deploy $REFSPEC, right?

In this case the latter is what I wanted, to go back to the state before the hotfix. I suppose ostree admin deploy $REFSPEC would work as long as $REFSPEC still points to the same commit and that command doesn't check for updates. I would think there would be a more direct way though.

@jlebon
Copy link
Member

jlebon commented Jan 31, 2019

Yeah, seems like we're missing something analogous to rpm-ostree rollback.

@jlebon jlebon changed the title Missing docs on how to deploy rollback Add ostree admin rollback Jan 31, 2019
@jlebon
Copy link
Member

jlebon commented Jan 31, 2019

Related: #380. Though that one is in the context of automatic rollbacks.

@westurner
Copy link

westurner commented Apr 17, 2024

Is there a way to do this without a reboot?

Use case: Create a deployment with sudo ostree admin unlock --hotfix and then remove it without rebooting

sudo ostree admin status | grep '(rollback)$'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants