From 2cfd8c9a3a4510fa4bf9802ee855c22b177b5931 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 5 Jul 2007 14:19:48 +0000 Subject: [PATCH] * Work properly when lvm is disabled. svn path=/nixos/trunk/; revision=8947 --- system/system.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/system.nix b/system/system.nix index c094cdf2676..a2a677d8e47 100644 --- a/system/system.nix +++ b/system/system.nix @@ -58,7 +58,7 @@ rec { } " ensureDir $out/bin - if [ -n $devicemapper ]; then + if test -n \"$devicemapper\"; then cp $devicemapper/sbin/dmsetup.static $out/bin/dmsetup cp $lvm2/sbin/lvm.static $out/bin/lvm ln -s lvm $out/bin/vgscan