From: Victor Lowther Date: Sat, 14 Aug 2010 19:23:26 +0000 (-0500) Subject: We are precise about hostonly checking these days. X-Git-Tag: 008~154 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=85ab21a6e05de372f7c59ece179789f24023d9f8;p=thirdparty%2Fdracut.git We are precise about hostonly checking these days. So get rid of the comment in 90crypt/check. Also do a bit of trivial bashification. --- diff --git a/modules.d/90crypt/check b/modules.d/90crypt/check index a34a05e1b..22a017ed0 100755 --- a/modules.d/90crypt/check +++ b/modules.d/90crypt/check @@ -2,12 +2,7 @@ # if cryptsetup is not installed, then we cannot support encrypted devices. which cryptsetup >/dev/null 2>&1 || exit 1 - -[ "$1" = "-d" ] && echo dm - -# hostonly checking should only return true if root is on a LUKS device -# in some way, but I am too lazy to figure out how to do that. -# Instead, fail if we do not have a LUKS device in use somewhere. +[[ $1 = -d ]] && echo dm . $dracutfunctions