summaryrefslogtreecommitdiffstats
path: root/debian/90overlay-root/module-setup.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-03 13:54:25 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-03 13:54:25 +0000
commit613b5479a576e8b54bc261055d341466fa57a937 (patch)
tree4e8f56ead3c83759cf5c9005d350926275370f66 /debian/90overlay-root/module-setup.sh
parentAdding upstream version 060+5. (diff)
downloaddracut-613b5479a576e8b54bc261055d341466fa57a937.tar.xz
dracut-613b5479a576e8b54bc261055d341466fa57a937.zip
Adding debian version 060+5-1.debian/060+5-1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/90overlay-root/module-setup.sh')
-rw-r--r--debian/90overlay-root/module-setup.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/debian/90overlay-root/module-setup.sh b/debian/90overlay-root/module-setup.sh
new file mode 100644
index 0000000..ae009f4
--- /dev/null
+++ b/debian/90overlay-root/module-setup.sh
@@ -0,0 +1,20 @@
+#!/bin/bash
+
+check() {
+ # do not add modules if the kernel does not have overlayfs support
+ [ -d /lib/modules/$kernel/kernel/fs/overlayfs ] || return 1
+}
+
+depends() {
+ # We do not depend on any modules - just some root
+ return 0
+}
+
+# called by dracut
+installkernel() {
+ hostonly='' instmods overlay
+}
+
+install() {
+ inst_hook pre-pivot 10 "$moddir/overlay-mount.sh"
+}