1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-11 09:04:01 +03:00
mobile-nixos/boot
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
..
error boot/error: Use assets path 2021-07-19 15:50:06 -04:00
init init: Fix kexec condition in SwitchRoot 2022-07-31 16:08:39 -04:00
lib lvgui: Fix add_switch description-default-value 2022-07-31 19:49:42 +02:00
misc boot/misc: Add script to generate linux input event codes 2020-11-22 16:48:32 -05:00
recovery-menu boot/recovery-menu: Review with new theme 2021-07-19 15:50:06 -04:00
script-loader lvgui: 2021-09-22 -> 2021-11-25 2021-11-25 20:15:12 -05:00
splash boot/splash: Review for assets path 2021-07-19 15:50:06 -04:00