mirror of
https://github.com/rancher/os.git
synced 2025-09-02 15:24:32 +00:00
Add parameters while loading kernel modules
This commit is contained in:
@@ -60,7 +60,9 @@ func loadModules(cfg *config.CloudConfig) (*config.CloudConfig, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
log.Debugf("Loading module %s", module)
|
log.Debugf("Loading module %s", module)
|
||||||
cmd := exec.Command("modprobe", module)
|
// split module and module parameters
|
||||||
|
cmdParam := strings.SplitN(module, " ", -1)
|
||||||
|
cmd := exec.Command("modprobe", cmdParam...)
|
||||||
cmd.Stdout = os.Stdout
|
cmd.Stdout = os.Stdout
|
||||||
cmd.Stderr = os.Stderr
|
cmd.Stderr = os.Stderr
|
||||||
if err := cmd.Run(); err != nil {
|
if err := cmd.Run(); err != nil {
|
||||||
|
Reference in New Issue
Block a user