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

Support a boot-once + broken new boot -> rollback model #177

Closed
cgwalters opened this issue Oct 14, 2015 · 7 comments
Closed

Support a boot-once + broken new boot -> rollback model #177

cgwalters opened this issue Oct 14, 2015 · 7 comments

Comments

@cgwalters
Copy link
Member

Some bootloaders have support for "boot once". Combined with a userspace sanity check (say e.g. a multi-user.target service fails), trigger an automatic rollback.

This would help enable automatic updates; see #44

@cgwalters
Copy link
Member Author

It'd probably make sense to bake in auto-rollback functionality into rpm-ostreed itself. We don't yet have a /etc/rpm-ostreed.conf, but not hard to add either.

Figure out a good way to hook in activating a service if reaching multi-user.target fails. Possibly using OnFailure= somewhere? Or would this have to be a custom always-running service that watches the journal?

Something like:

[autorollback]
policies=systemd-default-target

in /etc/rpm-ostreed.conf?

@cgwalters
Copy link
Member Author

See also ostreedev/ostree#380

@cgwalters
Copy link
Member Author

FWIW we actually now do have a config file.

@jlebon
Copy link
Member

jlebon commented Jul 23, 2018

Note that there is a new project called greenboot that tries to address this: https://github.com/LorbusChris/greenboot.

@jlebon
Copy link
Member

jlebon commented Jul 23, 2018

See also https://pagure.io/fedora-iot/issue/12.

@klausenbusk
Copy link

@jlebon
Copy link
Member

jlebon commented Nov 26, 2020

Going to close this in favour of coreos/fedora-coreos-tracker#47 since I think in the end this is something that has to be designed at a higher level.

@jlebon jlebon closed this as completed Nov 26, 2020
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