]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
Use new check functionaloty to only load cryptoroot when needed
authorVictor Lowther <victor.lowther@gmail.com>
Fri, 6 Mar 2009 21:15:59 +0000 (15:15 -0600)
committerVictor Lowther <victor.lowther@gmail.com>
Fri, 6 Mar 2009 21:15:59 +0000 (15:15 -0600)
modules.d/90crypt/check [new file with mode: 0755]

diff --git a/modules.d/90crypt/check b/modules.d/90crypt/check
new file mode 100755 (executable)
index 0000000..736198e
--- /dev/null
@@ -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