summaryrefslogtreecommitdiffstats
path: root/modules.d/90overlayfs/module-setup.sh
diff options
context:
space:
mode:
Diffstat (limited to '')
-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)
}