SVN: rc-scripts/trunk/rc.d/init.d/cryptsetup

glen glen at pld-linux.org
Tue Nov 18 14:40:45 CET 2008


Author: glen
Date: Tue Nov 18 14:40:44 2008
New Revision: 9998

Modified:
   rc-scripts/trunk/rc.d/init.d/cryptsetup
Log:
- catch missing device errors

Modified: rc-scripts/trunk/rc.d/init.d/cryptsetup
==============================================================================
--- rc-scripts/trunk/rc.d/init.d/cryptsetup	(original)
+++ rc-scripts/trunk/rc.d/init.d/cryptsetup	Tue Nov 18 14:40:44 2008
@@ -95,6 +95,12 @@
 			continue
 		fi
 
+		if [ ! -b "$src"  ]; then
+			nls "$src: No such device"
+			ret=1
+			continue
+		fi
+
 		if /sbin/cryptsetup isLuks "$src" 2>/dev/null; then
 			if key_is_random "$key"; then
 				nls "%s: LUKS requires non-random key, skipping" "$dst"


More information about the pld-cvs-commit mailing list