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