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
Boot-loader nixos-rebuild switch with unexpected behavior #67707
Comments
* See: NixOS/nixpkgs#67707 * Note: More changes required as this didn't complete boot
* See: NixOS/nixpkgs#67707 * Note: More changes required as this didn't complete boot
* See: NixOS/nixpkgs#67707 * Note: More changes required as this didn't complete boot
* See: NixOS/nixpkgs#67707 * Note: More changes required as this didn't complete boot
Thank you for your contributions. This has been automatically marked as stale because it has had no activity for 180 days. If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity. Here are suggestions that might help resolve this more quickly:
|
Describe the bug
If switching between boot loaders in the nixos configuration, such as from grub efi to systemd-boot, a
nixos-rebuild switch
will not give an error but the boot loader change isn't carried out either and new system generations are not subsequently booted into.This was initially encountered in nixops deployments where a bootloader change had occurred in the code and where nixops reported successful deploys, that a reboot was required, and the reboot did not result in system generation update.
To Reproduce
The easiest way may be using @cleverca22's nix-tests repo:
Expected behavior
Consider changing to behavior of: If a boot loader change is done in the nixos configuration and
--install-bootloader
is not specified for the rebuild, throw an error instead of appearing to succeed but failing to carry out the boot loader config change.Additional context
There may be additional edge cases to consider when switching boot loaders, such as if going from grub-efi to systemd-boot and back to grub-efi. When doing so, if the state file for grub is still present at /boot/grub/state from the initial boot loader deployment, will grub re-install itself on the switch back?
Metadata
From the qemu vm example above:
Maintainer information:
cc: @cleverca22 @disassembler
The text was updated successfully, but these errors were encountered: