Add coreutils to list of dependencies

This allows for the disko scripts to be ran in more foreign environments
where we can't assume the basic utilities coreutils provides are
available or aren't 1-for-1 compatible (e.g. busybox utilities).
This commit is contained in:
Jared Baur 2024-05-15 09:57:53 -07:00
parent 27c40e5381
commit e9dd5abae3
No known key found for this signature in database
2 changed files with 4 additions and 2 deletions

View File

@ -385,8 +385,9 @@ let
internal = true; internal = true;
description = '' description = ''
packages required by the disko configuration packages required by the disko configuration
coreutils is always included
''; '';
default = pkgs: unique (flatten (map (dev: dev._pkgs pkgs) (flatten (map attrValues (attrValues devices))))); default = pkgs: unique ((flatten (map (dev: dev._pkgs pkgs) (flatten (map attrValues (attrValues devices))))) ++ [ pkgs.coreutils-full ]);
}; };
_scripts = lib.mkOption { _scripts = lib.mkOption {
internal = true; internal = true;
@ -405,6 +406,7 @@ let
jq jq
gnused gnused
gawk gawk
coreutils-full
])}:$PATH ])}:$PATH
${cfg.config._destroy} ${cfg.config._destroy}
''; '';

View File

@ -219,7 +219,7 @@ in
readOnly = true; readOnly = true;
type = lib.types.functionTo (lib.types.listOf lib.types.package); type = lib.types.functionTo (lib.types.listOf lib.types.package);
default = pkgs: default = pkgs:
[ pkgs.btrfs-progs pkgs.coreutils pkgs.gnugrep ]; [ pkgs.btrfs-progs pkgs.gnugrep ];
description = "Packages"; description = "Packages";
}; };
}; };