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

Open
cgwalters opened this issue Oct 14, 2015 · 6 comments

Comments

@cgwalters
Copy link
Member

commented Oct 14, 2015

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

This comment has been minimized.

Copy link
Member Author

commented Apr 25, 2016

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?

@jlebon jlebon added the enhancement label Mar 15, 2017

@cgwalters

This comment has been minimized.

Copy link
Member Author

commented Dec 14, 2017

@cgwalters

This comment has been minimized.

Copy link
Member Author

commented Jan 31, 2018

FWIW we actually now do have a config file.

@jlebon

This comment has been minimized.

Copy link
Member

commented Jul 23, 2018

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

@jlebon

This comment has been minimized.

Copy link
Member

commented Jul 23, 2018

@klausenbusk

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.