summaryrefslogtreecommitdiffstats
path: root/modules.d/90overlayfs/module-setup.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-03 14:01:35 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-03 14:01:35 +0000
commite6f2eaf47a177a8eca054d1d70a1b6287e8c3521 (patch)
treec5719e819a9e37df4b54affd61438f382ec38a8f /modules.d/90overlayfs/module-setup.sh
parentAdding upstream version 060+5. (diff)
downloaddracut-upstream/102.tar.xz
dracut-upstream/102.zip
Adding upstream version 102.upstream/102
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'modules.d/90overlayfs/module-setup.sh')
-rwxr-xr-xmodules.d/90overlayfs/module-setup.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/modules.d/90overlayfs/module-setup.sh b/modules.d/90overlayfs/module-setup.sh
index 893e2dc..dae2009 100755
--- a/modules.d/90overlayfs/module-setup.sh
+++ b/modules.d/90overlayfs/module-setup.sh
@@ -1,7 +1,7 @@
#!/bin/bash
check() {
- [[ $hostonly ]] && return 1
+ require_kernel_modules overlay || return 1
return 255
}
@@ -10,10 +10,11 @@ depends() {
}
installkernel() {
- instmods overlay
+ hostonly="" instmods overlay
}
install() {
- inst_hook mount 01 "$moddir/mount-overlayfs.sh"
inst_hook pre-mount 01 "$moddir/prepare-overlayfs.sh"
+ inst_hook mount 01 "$moddir/mount-overlayfs.sh" # overlay on top of block device
+ inst_hook pre-pivot 10 "$moddir/mount-overlayfs.sh" # overlay on top of network device (e.g. nfs)
}