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

Recovery mode #18

Open
o8vm opened this issue Mar 31, 2020 · 0 comments
Open

Recovery mode #18

o8vm opened this issue Mar 31, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@o8vm
Copy link
Owner

o8vm commented Mar 31, 2020

Is your feature request related to a problem? Please describe.
Currently, Krabs does not have a way to recover from a boot failure, so it needs a reasonable recovery option that can be also used in a cloud environment like AWS EC2.

Describe the solution you'd like
For implementing Recovery Option, we are going to use a what should be called a startup success marker. Krabs uses this special marker by embedding it in the free space on the disk.

Then the following mechanism is used to detect startup failures and implement the fall back option.

  1. After the OS start up succeeded, OS have to embed the success marker into disk with a service (like systemd services, etc).
  2. If this mark is not present at the next time booting, bootloader judges that the OS failed to boot last time and tries to boot with another one.
  3. Bootloader erase this marker before processing from the bootloader to the kernel.

This would make it possible to implement a simple recovery mode in Krabs that can be recovered by simply rebooting in a cloud environment.

@o8vm o8vm added the enhancement New feature or request label Mar 31, 2020
@o8vm o8vm self-assigned this Mar 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant