diff options
author | ajs124 <git@ajs124.de> | 2022-02-13 15:41:14 +0100 |
---|---|---|
committer | ajs124 <git@ajs124.de> | 2022-04-04 14:23:09 +0100 |
commit | 6a8face381e3424aaa733ad183e5dc6a9fab7f98 (patch) | |
tree | 3d201d133ecdf9723f5c90c20850f1e7ffbf8673 /nixos/modules/tasks | |
parent | 29350716d490d390c04ba31a8967211f0f82455f (diff) |
nixos/tests/lvm2: don't try to add script from vdo to initrd
Diffstat (limited to 'nixos/modules/tasks')
-rw-r--r-- | nixos/modules/tasks/lvm.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nixos/modules/tasks/lvm.nix b/nixos/modules/tasks/lvm.nix index 3d48ba492c479..59711f90dce3d 100644 --- a/nixos/modules/tasks/lvm.nix +++ b/nixos/modules/tasks/lvm.nix @@ -72,13 +72,13 @@ in { kernelModules = [ "kvdo" ]; extraUtilsCommands = '' - for BIN in ${pkgs.vdo}/bin/*; do - copy_bin_and_libs $BIN + ls ${pkgs.vdo}/bin/ | grep -v adaptLVMVDO | while read BIN; do + copy_bin_and_libs ${pkgs.vdo}/bin/$BIN done ''; extraUtilsCommandsTest = '' - ls ${pkgs.vdo}/bin/ | while read BIN; do + ls ${pkgs.vdo}/bin/ | grep -v adaptLVMVDO | while read BIN; do $out/bin/$(basename $BIN) --help > /dev/null done ''; |