mirror of
https://github.com/nix-community/disko.git
synced 2026-12-02 14:03:28 +01:00
make-disk-image: use modules output of a kernel if present
This is a hotfix that could be reverted if we get: https://github.com/NixOS/nixpkgs/pull/439178 in.
This commit is contained in:
1 parent
bafad29f89
commit
a5c4f2ab72
1 file changed
+4
-1
@@ -43,7 +43,10 @@ let
|
|||||||
++ (lib.optional configSupportsZfs "zfs")
|
++ (lib.optional configSupportsZfs "zfs")
|
||||||
++ cfg.extraRootModules;
|
++ cfg.extraRootModules;
|
||||||
kernel = pkgs.aggregateModules (
|
kernel = pkgs.aggregateModules (
|
||||||
[ cfg.kernelPackages.kernel ]
|
[
|
||||||
|
cfg.kernelPackages.kernel
|
||||||
|
]
|
||||||
|
++ lib.optional (cfg.kernelPackages.kernel ? modules) cfg.kernelPackages.kernel.modules
|
||||||
++ lib.optional (
|
++ lib.optional (
|
||||||
lib.elem "zfs" cfg.extraRootModules || configSupportsZfs
|
lib.elem "zfs" cfg.extraRootModules || configSupportsZfs
|
||||||
) cfg.kernelPackages.${config.boot.zfs.package.kernelModuleAttribute}
|
) cfg.kernelPackages.${config.boot.zfs.package.kernelModuleAttribute}
|
||||||
|
|||||||
Reference in new issue
Block a user