From 0e05f9fd91f8844f7a14ec42da889db831a086d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20B=C3=A4chler?= Date: Wed, 26 Jan 2011 17:32:26 +0100 Subject: Fix isLuks check The check was wrong, every device was treated as LUKS. Also remove the _isluks variable, as now it is not used by the SWAP sanity check anymore. --- rc.sysinit | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'rc.sysinit') diff --git a/rc.sysinit b/rc.sysinit index f5c3e87..9550122 100755 --- a/rc.sysinit +++ b/rc.sysinit @@ -136,9 +136,7 @@ if [[ -f /etc/crypttab && $CS ]]; then # Ordering of options is different if you are using LUKS vs. not. # Use ugly swizzling to deal with it. # isLuks only gives an exit code but no output to stdout or stderr. - $CS isLuks "$2" - _isluks=$? - if [[ $_isluks ]]; then + if $CS isLuks "$2"; then open=luksOpen a="$2" b="$1" -- cgit v1.2.3