From d30e73c36dd761e853ceccc968d85daaaf85f619 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Fri, 23 May 2008 10:54:05 -0400 Subject: Don't try to startup crypto if we can't find the device, or if it isn't there. --- rc.d/rc.sysinit | 2 ++ 1 file changed, 2 insertions(+) (limited to 'rc.d') diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit index 32789859..2a33af26 100755 --- a/rc.d/rc.sysinit +++ b/rc.d/rc.sysinit @@ -141,6 +141,8 @@ init_crypto() { elif [ "${src/^\/dev\/disk\/by-uuid\/}" != "$src" ]; then src=$(__readlink $src) fi + [ -z "$src" ] && continue + [ -b "$src" ] || continue # Parse the options field, convert to cryptsetup parameters # and contruct the command line while [ -n "$opt" ]; do -- cgit v1.2.1