The lvmthinpool-monitor module is needed for monitor and
autoextend the size of thin pool in 2nd kernel.
Signed-off-by: Tao Liu <ltao(a)redhat.com>
---
dracut-module-setup.sh | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/dracut-module-setup.sh b/dracut-module-setup.sh
index 4c6096a..66249dd 100755
--- a/dracut-module-setup.sh
+++ b/dracut-module-setup.sh
@@ -40,6 +40,10 @@ depends() {
_dep="$_dep ssh-client"
fi
+ if is_lvm2_thinp_dump_target; then
+ add_opt_module lvmthinpool-monitor
+ fi
+
if [[ "$(uname -m)" == "s390x" ]]; then
_dep="$_dep znet"
fi
--
2.33.1