summaryrefslogtreecommitdiffstats
path: root/modules.d/30convertfs/module-setup.sh
diff options
context:
space:
mode:
Diffstat (limited to 'modules.d/30convertfs/module-setup.sh')
-rwxr-xr-xmodules.d/30convertfs/module-setup.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/modules.d/30convertfs/module-setup.sh b/modules.d/30convertfs/module-setup.sh
new file mode 100755
index 0000000..68fb78f
--- /dev/null
+++ b/modules.d/30convertfs/module-setup.sh
@@ -0,0 +1,19 @@
+#!/bin/bash
+
+# called by dracut
+check() {
+ [[ $mount_needs ]] && return 1
+ return 255
+}
+
+# called by dracut
+depends() {
+ echo base bash
+}
+
+# called by dracut
+install() {
+ inst_multiple bash find ldconfig mv rm cp ln
+ inst_hook pre-pivot 99 "$moddir/do-convertfs.sh"
+ inst_script "$moddir/convertfs.sh" /usr/bin/convertfs
+}