From 6a8face381e3424aaa733ad183e5dc6a9fab7f98 Mon Sep 17 00:00:00 2001 From: ajs124 Date: Sun, 13 Feb 2022 15:41:14 +0100 Subject: [PATCH] nixos/tests/lvm2: don't try to add script from vdo to initrd --- nixos/modules/tasks/lvm.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nixos/modules/tasks/lvm.nix b/nixos/modules/tasks/lvm.nix index 3d48ba492c47..59711f90dce3 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 '';