From fb771318d11b563254d12c3751effaedfe16ab35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Sun, 27 Nov 2022 16:50:43 +0100 Subject: add disko output variant without package list for netboot or kexec based installer we may want to avoid uploading too many dependencies because the target could go out-of-memory. --- module.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/module.nix b/module.nix index dbb9d88..0655880 100644 --- a/module.nix +++ b/module.nix @@ -51,6 +51,11 @@ in { ${types.diskoLib.zapCreateMount cfg.devices} ''; + # This is useful to skip copying executables uploading a script to an in-memory installer + system.build.diskoNoDeps = pkgs.writers.writeBash "disko" '' + ${types.diskoLib.zapCreateMount cfg.devices} + ''; + # Remember to add config keys here if they are added to types fileSystems = lib.mkIf cfg.enableConfig (lib.mkMerge (lib.catAttrs "fileSystems" (types.diskoLib.config cfg.devices))); boot = lib.mkIf cfg.enableConfig (lib.mkMerge (lib.catAttrs "boot" (types.diskoLib.config cfg.devices))); -- cgit v1.2.3