1
0
mirror of https://github.com/rancher/os.git synced 2025-09-02 23:34:57 +00:00

Show output for modprobe calls

This commit is contained in:
Josh Curl
2016-12-01 11:16:53 -08:00
parent a425c4cc1b
commit d53452a7eb

View File

@@ -59,7 +59,10 @@ func loadModules(cfg *config.CloudConfig) (*config.CloudConfig, error) {
}
log.Debugf("Loading module %s", module)
if err := exec.Command("modprobe", module).Run(); err != nil {
cmd := exec.Command("modprobe", module)
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
if err := cmd.Run(); err != nil {
log.Errorf("Could not load module %s, err %v", module, err)
}
}