bootloader script as a replacement for grub/systemd-boot/extlinux NixOS rollback feature #78
AleXoundOS
started this conversation in
Ideas
Replies: 3 comments 2 replies
|
What is the current way to rollback? |
1 reply
|
I think no way. The proposed script is quite easy to write, though. Later I will share a variant of it. |
0 replies
|
I like the idea, though having a script that awaits input in the startup process might cause problems. (For example, when the distro gets started by the vscode remote extension). The better way would probably be to add a something for this to |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
First of all, thank you for making NixOS on WSL a reality! It works!
Originally, NixOS comes with a handy rollback feature which helps in case the system got broken. At the current (974a7c4) state it's even easier: making some systemd service enter a failed state prevents the login. Though, there is a workaround
wsl -u nixosfor exact this case with some nasty hacks following it related to namespaces, but I think the problem is clear.The idea is to develop a not so complex NixOS module or maybe patch the grub/systemd-boot/extlinux module to allow a user select the system configuration to load instead of the most recent.
Without NixOS module, in the most primitive form: listing directories symlinks in
/nix/var/nix/profilesand waiting for a user to type the desired one should suffice, residing insyschdemd.shscript.All reactions