mirror of
https://github.com/nix-community/disko.git
synced 2026-11-30 13:03:28 +01:00
module.nix: switch system.build.installTest to match system.build.diskoTest
One-line semantic change in `module.nix`: replace
`installTest = diskoLib.testLib.makeDiskoTest { … };` with
`installTest = lib.mkDefault config.disko.test.test;` in the
`system.build` attrset — same RHS as the `diskoTest` definition added
in the previous commit.
After this commit, `diskoTest` and `installTest` are two attrset
entries with identical values; `installTest` is purely a back-compat
alias resolving to the exact same derivation as `diskoTest`.
The `cfg.test.efi` / `cfg.test.bootCommands` / etc. reads that used to
be `makeDiskoTest` arguments disappear with the legacy call.
`vmWithDisko` stays unchanged.
This commit is contained in:
1 parent
9f4cb09648
commit
fee3087c18
1 file changed
+1
-10
+1
-10
@@ -310,16 +310,7 @@ in
|
||||
builtins.trace "the .diskoNoDeps output is deprecated, please use .diskoScriptNoDeps instead"
|
||||
(cfg.devices._scripts { inherit pkgs; }).diskoScriptNoDeps;
|
||||
|
||||
installTest = diskoLib.testLib.makeDiskoTest {
|
||||
inherit extendModules pkgs;
|
||||
name = "${config.networking.hostName}-disko";
|
||||
disko-config = builtins.removeAttrs config [ "_module" ];
|
||||
testMode = "direct";
|
||||
bootCommands = cfg.test.bootCommands;
|
||||
efi = cfg.test.efi;
|
||||
enableOCR = cfg.test.enableOCR;
|
||||
extraTestScript = cfg.test.extraChecks;
|
||||
};
|
||||
installTest = lib.mkDefault config.disko.test.test;
|
||||
|
||||
diskoTest = lib.mkDefault config.disko.test.test;
|
||||
|
||||
|
||||
Reference in new issue
Block a user