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:
parent
7a0a108ffa
commit
c81e858ea5
@ -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 =
|
||||
|
@ -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;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user