1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-16 20:21:32 +03:00

initrd: Add kexectool in stage-0 module

This commit is contained in:
Samuel Dionne-Riel 2021-02-11 17:56:50 -05:00
parent 7a0a108ffa
commit c81e858ea5
2 changed files with 3 additions and 2 deletions

View File

@ -3,7 +3,6 @@
let let
inherit (pkgs) inherit (pkgs)
busybox busybox
kexectools
makeInitrd makeInitrd
mkExtraUtils mkExtraUtils
runCommandNoCC runCommandNoCC
@ -165,7 +164,6 @@ let
busybox busybox
] ]
++ optionals (stage-1 ? extraUtils) stage-1.extraUtils ++ optionals (stage-1 ? extraUtils) stage-1.extraUtils
++ optionals (config.mobile.quirks.supportsStage-0) [ kexectools ]
++ [{ ++ [{
package = runCommandNoCC "empty" {} "mkdir -p $out"; package = runCommandNoCC "empty" {} "mkdir -p $out";
extraCommand = extraCommand =

View File

@ -25,6 +25,9 @@ in
system.build.stage-0 = (config.lib.mobile-nixos.composeConfig { system.build.stage-0 = (config.lib.mobile-nixos.composeConfig {
config = { config = {
mobile.boot.stage-1.stage = if supportsStage-0 then 0 else 1; mobile.boot.stage-1.stage = if supportsStage-0 then 0 else 1;
mobile.boot.stage-1.extraUtils = with pkgs; [
{ package = pkgs.kexectools; }
];
}; };
}).config; }).config;
}; };