copy only cryptsetup deps to stage-1 and test cryptsetup
copy only cryptsetup deps to stage-1 and test cryptsetup

popt-0.16 and cryptsetup-1.4.1 both generated pkgconfig (in contrast
to older versions). The pkgconfig files (popt.pc and cryptsetup.pc)
contain references into the store that are not removed by patchelf and
stage-1 fails with errors like: "output is not allowed to refer to
path `/nix/store/qccjhn063cfv171rcaxvxh0yk96zf7l2-cryptsetup-1.4.1'".

Now, only the cryptsetup binaries and its dependencies are copied,
determined by ldd. In addition the cryptsetup binary and lvm are
tested after patchelf has adjusted the library paths.

Thanks to Peter Simons and Eelco Dolstra for giving the rights hints.

svn path=/nixos/trunk/; revision=31128

NixOS/nixpkgs,rbvermaa/nixos-svn,triton/triton,triton/triton,andreassalomonsson/nixos,triton/triton,andreassalomonsson/nixos,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixos,rbvermaa/nixos-svn,SymbiFlow/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,triton/triton,SymbiFlow/nixpkgs,NixOS/nixos,SymbiFlow/nixpkgs,rbvermaa/nixos-svn,andreassalomonsson/nixos,NixOS/nixpkgs,NixOS/nixos,andreassalomonsson/nixos,edolstra/nixos,edolstra/nixos,NixOS/nixos,rbvermaa/nixos-svn,NixOS/nixpkgs,triton/triton,NixOS/nixpkgs,triton/triton,NixOS/nixpkgs,edolstra/nixos,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,andreassalomonsson/nixos,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixos,SymbiFlow/nixpkgs,NixOS/nixos,NixOS/nixpkgs,triton/triton,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,edolstra/nixos,edolstra/nixos,triton/triton,NixOS/nixpkgs,SymbiFlow/nixpkgs,andreassalomonsson/nixos