From ee3385a97bef10fc20ed8c04e1b0dee0d5f0194c Mon Sep 17 00:00:00 2001 From: Seblu Date: Fri, 11 Feb 2011 01:48:03 +0100 Subject: Improve encrypted filesystem detection --- rc.sysinit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rc.sysinit') diff --git a/rc.sysinit b/rc.sysinit index 4080a0d..d15e1be 100755 --- a/rc.sysinit +++ b/rc.sysinit @@ -120,7 +120,7 @@ fi activate_vgs # Set up non-root encrypted partition mappings -if [[ -f /etc/crypttab && $CS && -n $(/bin/grep -v ^# /etc/crypttab | /bin/grep -v ^$) ]]; then +if [[ -f /etc/crypttab && -n $CS ]] && /bin/grep -q ^[^#] /etc/crypttab; then /sbin/modprobe -q dm-crypt 2>/dev/null stat_busy "Unlocking encrypted volumes:" do_unlock() { -- cgit v1.2.3