From: Victor Lowther Date: Fri, 6 Mar 2009 21:15:59 +0000 (-0600) Subject: Use new check functionaloty to only load cryptoroot when needed X-Git-Tag: 0.1~326 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8fb66c9a3fbe113d70ef84ac69c25f308acc6798;p=thirdparty%2Fdracut.git Use new check functionaloty to only load cryptoroot when needed --- diff --git a/modules.d/90crypt/check b/modules.d/90crypt/check new file mode 100755 index 000000000..736198e69 --- /dev/null +++ b/modules.d/90crypt/check @@ -0,0 +1,3 @@ +#!/bin/sh +grep -q '^dm_crypt' /proc/modules || exit 1 +awk '/^dm_crypt/ {if ($3 > 0) exit 0; else exit 1;}' /proc/modules \ No newline at end of file