summaryrefslogtreecommitdiffstats
path: root/modules.d/98ecryptfs/module-setup.sh
diff options
context:
space:
mode:
Diffstat (limited to 'modules.d/98ecryptfs/module-setup.sh')
-rwxr-xr-xmodules.d/98ecryptfs/module-setup.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/modules.d/98ecryptfs/module-setup.sh b/modules.d/98ecryptfs/module-setup.sh
new file mode 100755
index 0000000..9328b51
--- /dev/null
+++ b/modules.d/98ecryptfs/module-setup.sh
@@ -0,0 +1,22 @@
+#!/bin/bash
+
+# called by dracut
+check() {
+ return 255
+}
+
+# called by dracut
+depends() {
+ echo masterkey
+ return 0
+}
+
+# called by dracut
+installkernel() {
+ instmods ecryptfs
+}
+
+# called by dracut
+install() {
+ inst_hook pre-pivot 63 "$moddir/ecryptfs-mount.sh"
+}