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

Implement switching root. #14

Closed
samueldr opened this issue Jun 21, 2018 · 3 comments
Closed

Implement switching root. #14

samueldr opened this issue Jun 21, 2018 · 3 comments
Projects

Comments

@samueldr
Copy link
Member

That is, going to stage-2.

The first step is to manage it like lxc containers, where an omnipresent init points to the last generation marked to boot. This will make it possible to do stage-2 without having to manage existing generations.

@samueldr samueldr created this issue from a note in stage-1 (TODO) Jun 21, 2018
@samueldr
Copy link
Member Author

This is partially merged to master, due to merging wip/cross.

The current implementation is a bodge, at best.

@samueldr
Copy link
Member Author

Just a note, the code should be working, but I haven't been able yet to test on hardware due to miscellaneous issues.

  • Building a stage-2 image for armv7 is hard (though I could use an existing one.
  • Flashing the data somewhere on sd-card-less devices is an issue not resolved yet.
  • One device is now (hopefully temporarily) out of service. (Dead battery)
  • The remaining aarch64 device has issues, and among others, seems to not detect SD cards with the aarch64 kernel.

The current status is: indirectly related issues are stopping me from progressing.

@samueldr
Copy link
Member Author

Demonstrably works on qemu target, depthcharge target.

Not obvious, but also work on android targets, the lambdaflake get colourized, meaning that it got to just before starting systemd's init, meaning that it did switch_root into the NixOS stage-2. For android, we're still left with finding useful graphical software for stage-2, but that's out of scope of this particular issue :).

@samueldr samueldr moved this from TODO to Done in stage-1 Oct 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

No branches or pull requests

1 participant