diff --git a/pkg/local/preflight/checker.go b/pkg/local/preflight/checker.go index 94c146d4..365e9966 100644 --- a/pkg/local/preflight/checker.go +++ b/pkg/local/preflight/checker.go @@ -101,7 +101,9 @@ func (local *Checker) Init() error { local.packages = []string{ "nfs-common", "open-iscsi", "cryptsetup", } - local.modules = []string{} + local.modules = []string{ + "dm_crypt", + } local.services = []string{ "multipathd.service", } @@ -117,7 +119,9 @@ func (local *Checker) Init() error { local.packages = []string{ "nfs-utils", "iscsi-initiator-utils", "cryptsetup", } - local.modules = []string{} + local.modules = []string{ + "dm_crypt", + } local.services = []string{ "multipathd.service", } @@ -133,7 +137,9 @@ func (local *Checker) Init() error { local.packages = []string{ "nfs-client", "open-iscsi", "cryptsetup", } - local.modules = []string{} + local.modules = []string{ + "dm_crypt", + } local.services = []string{ "multipathd.service", } @@ -149,7 +155,9 @@ func (local *Checker) Init() error { local.packages = []string{ "nfs-utils", "open-iscsi", "cryptsetup", } - local.modules = []string{} + local.modules = []string{ + "dm_crypt", + } local.services = []string{ "multipathd.service", } @@ -192,6 +200,10 @@ func (local *Checker) Run() error { return err } + if err := local.checkModulesLoaded(false); err != nil { + return err + } + if local.EnableSpdk { instructionSets := map[string][]string{ "amd64": {"sse4_2"}, diff --git a/pkg/local/preflight/installer.go b/pkg/local/preflight/installer.go index 05c8cb33..c2263300 100644 --- a/pkg/local/preflight/installer.go +++ b/pkg/local/preflight/installer.go @@ -77,7 +77,7 @@ func (local *Installer) Init() error { "nfs-common", "open-iscsi", "cryptsetup", } local.modules = []string{ - "nfs", + "nfs", "dm_crypt", } local.services = []string{ "iscsid", @@ -98,7 +98,7 @@ func (local *Installer) Init() error { "nfs-utils", "iscsi-initiator-utils", "cryptsetup", } local.modules = []string{ - "nfs", "iscsi_tcp", + "nfs", "iscsi_tcp", "dm_crypt", } local.services = []string{ "iscsid", @@ -117,7 +117,7 @@ func (local *Installer) Init() error { "nfs-client", "open-iscsi", "cryptsetup", } local.modules = []string{ - "nfs", "iscsi_tcp", + "nfs", "iscsi_tcp", "dm_crypt", } local.services = []string{ "iscsid", @@ -136,7 +136,7 @@ func (local *Installer) Init() error { "nfs-utils", "open-iscsi", "cryptsetup", } local.modules = []string{ - "nfs", "iscsi_tcp", + "nfs", "iscsi_tcp", "dm_crypt", } local.services = []string{ "iscsid",