summaryrefslogtreecommitdiffstats
path: root/modules.d/98usrmount/module-setup.sh
diff options
context:
space:
mode:
Diffstat (limited to 'modules.d/98usrmount/module-setup.sh')
-rwxr-xr-xmodules.d/98usrmount/module-setup.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/modules.d/98usrmount/module-setup.sh b/modules.d/98usrmount/module-setup.sh
new file mode 100755
index 0000000..bc88deb
--- /dev/null
+++ b/modules.d/98usrmount/module-setup.sh
@@ -0,0 +1,20 @@
+#!/bin/bash
+
+# called by dracut
+check() {
+ [[ $mount_needs ]] && return 1
+ return 0
+}
+
+# called by dracut
+depends() {
+ echo 'fs-lib'
+}
+
+# called by dracut
+install() {
+ if ! dracut_module_included "systemd"; then
+ inst_hook pre-pivot 50 "$moddir/mount-usr.sh"
+ fi
+ :
+}