1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-11 09:04:01 +03:00
mobile-nixos/boot/init
Samuel Dionne-Riel 5bd7e6bbfc init: Fix kexec condition in SwitchRoot
In #300 I "fixed" stage-0 by adding a switch to toggle between it being
enabled and disabled in the recovery menu. *That* works as expected.

In 2a46962d76 one can observe that the
`#will_kexec?` method will use data that will only come from the
`choice` made from the recovery interface. The `@use_generation_kernel`
member is not set at any other point.

With ruby semantics, this means that the `if` is false, so *unless* you
choose to boot using the recovery menu, it will never trigger `kexec`.

Why has this gone through this way? Most likely because my main testing
target was configured so it *always* went to the recovery menu at the
time, meaning that I never saw the default behaviour.
2022-07-31 16:08:39 -04:00
..
lib boot/init: Fix System.which logic 2022-05-29 22:39:11 -04:00
tasks init: Fix kexec condition in SwitchRoot 2022-07-31 16:08:39 -04:00
default.nix Fix stdenv.lib being removed 2021-02-02 05:51:18 -05:00
init.rb boot/init: Use configurable stage value 2020-12-27 17:50:30 -05:00