Skip to content

Commit b129903

Browse files
authored
Merge pull request #5580 from emosbaugh/issue-5579-exec-modprobe
fix: kernel modules not enabled, modprobe is not executed
2 parents d41abff + 642b055 commit b129903

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/component/worker/kernelsetup_linux.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ func hasFilesystem(filesystem string) bool {
4343
}
4444

4545
func modprobe(module string) {
46-
err := exec.Command("modprobe", module)
46+
out, err := exec.Command("modprobe", module).CombinedOutput()
4747
if err != nil {
48-
logrus.Warnf("failed to load %s kernel module: %s", module, err)
48+
logrus.WithError(err).Warnf("failed to load kernel module %s: %s", module, out)
4949
}
5050
}
5151

0 commit comments

Comments
 (0)