Revert "test we have cryptsetup-1.4.1 in initrd"

This reverts commit 025f8c40b40fad50086e8761eee61098d8fb2651.

The check was intened for building the initrd of the installer.

svn path=/nixos/trunk/; revision=31137
This commit is contained in:
Florian Friesdorf 2011-12-28 22:37:38 +00:00
parent 0544a008db
commit 3ebc7727f7

View file

@ -38,19 +38,8 @@ in
done
'';
# test whether cryptsetup finds all dependencies and is at least
# version 1.4.1
boot.initrd.extraUtilsCommandsTest = ''
cryptsetup_version=$($out/bin/cryptsetup --version |cut -d' ' -f2)
if test $(echo $version |cut -d'.' -f1) -lt 1; then
if test $(echo $version |cut -d'.' -f2) -lt 4; then
if test $(echo $version |cut -d'.' -f3) -lt 2; then
echo "Somehow the version of cryptsetup is too old: $cryptsetup_version instead of 1.4.1"
exit 1
fi
fi
fi
unset cryptsetup_version
$out/bin/cryptsetup --version
'';
boot.initrd.preLVMCommands = ''