From 804f5378a58744f8ac2bf883ce7c85e4e62b070f Mon Sep 17 00:00:00 2001 From: Tobias Powalowski Date: Mon, 20 Apr 2009 07:23:50 +0200 Subject: [PATCH] 'fixed cryptdevice check' --- usr/share/archboot/installer/setup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/share/archboot/installer/setup b/usr/share/archboot/installer/setup index 050560a2e..e6790027d 100755 --- a/usr/share/archboot/installer/setup +++ b/usr/share/archboot/installer/setup @@ -2001,7 +2001,7 @@ getraidarrays() { getcryptsetup() { CRYPTSETUP="" - if [ "$(cryptsetup status $(basename $PART_ROOT))" ]; then + if ! [ "$(cryptsetup status $(basename $PART_ROOT) | grep inactive) " ]; then CRYPTDEVICE="$(echo $(cryptsetup status $(basename $PART_ROOT) | grep device: | sed -e 's#device:##g'))" CRYPTNAME="$(basename $PART_ROOT)" CRYPTSETUP="cryptdevice=$CRYPTDEVICE:$CRYPTNAME"