diff options
Diffstat (limited to 'debian/90overlay-root/module-setup.sh')
-rw-r--r-- | debian/90overlay-root/module-setup.sh | 20 |
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" +} |