From 67ea3074e2a2e46509aab892cfea32c677deca6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20B=C3=A4chler?= Date: Tue, 1 Feb 2011 19:34:45 +0100 Subject: Check whether crypttab contains anything before processing it. This check was removed in the bashification, add it back. --- rc.sysinit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc.sysinit b/rc.sysinit index 3ed61c7..44c3eac 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 ]]; then +if [[ -f /etc/crypttab && $CS && -n $(/bin/grep -v ^# /etc/crypttab | /bin/grep -v ^$) ]]; then /sbin/modprobe -q dm-crypt 2>/dev/null stat_busy "Unlocking encrypted volumes:" do_unlock() { -- cgit v1.2.3