From 2c4db1a6cf5cb6ccfb1cc2235335b9b0abaae0ae Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Tue, 14 May 2013 23:35:10 -0400 Subject: [PATCH] Don't copy libz and liblzo2 twice to the initrd Signed-off-by: Shea Levy --- modules/tasks/filesystems/btrfs.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/tasks/filesystems/btrfs.nix b/modules/tasks/filesystems/btrfs.nix index 94a7412575df..57a7e5e302da 100644 --- a/modules/tasks/filesystems/btrfs.nix +++ b/modules/tasks/filesystems/btrfs.nix @@ -20,8 +20,8 @@ in cp -v ${pkgs.btrfsProgs}/bin/btrfsck $out/bin cp -v ${pkgs.btrfsProgs}/bin/btrfs $out/bin # !!! Increases uncompressed initrd by 240k - cp -v ${pkgs.zlib}/lib/libz.so.1{,.2.7} $out/lib - cp -v ${pkgs.lzo}/lib/liblzo2.so.2{,.0.0} $out/lib + cp -pv ${pkgs.zlib}/lib/libz.so* $out/lib + cp -pv ${pkgs.lzo}/lib/liblzo2.so* $out/lib ln -sv btrfsck $out/bin/fsck.btrfs '';