* Resolve $device (e.g. from /dev/disk/by-label/foo -> /dev/sda2),   because /proc/swaps contains resolved paths as well.  Without this,   the swap device will be turned off again by the $unused code.
* Resolve $device (e.g. from /dev/disk/by-label/foo -> /dev/sda2),
  because /proc/swaps contains resolved paths as well.  Without this,
  the swap device will be turned off again by the $unused code.

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

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