1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-16 03:32:02 +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
inherit (pkgs)
busybox
kexectools
makeInitrd
mkExtraUtils
runCommandNoCC
@ -165,7 +164,6 @@ let
busybox
]
++ optionals (stage-1 ? extraUtils) stage-1.extraUtils
++ optionals (config.mobile.quirks.supportsStage-0) [ kexectools ]
++ [{
package = runCommandNoCC "empty" {} "mkdir -p $out";
extraCommand =

View File

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