Skip to content

Commit

Permalink
Fix OS tweaks call
Browse files Browse the repository at this point in the history
The feature was not getting properly triggered, move it as
first operation in the configure

Signed-off-by: Flavio Crisciani <[email protected]>
  • Loading branch information
Flavio Crisciani committed Jun 7, 2017
1 parent 7ec0ce6 commit 9d298aa
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions drivers/overlay/overlay.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,10 @@ func Fini(drv driverapi.Driver) {
}

func (d *driver) configure() error {

// Apply OS specific kernel configs if needed
d.initOS.Do(applyOStweaks)

if d.store == nil {
return nil
}
Expand All @@ -188,9 +192,6 @@ func (d *driver) configure() error {
return d.initializeVxlanIdm()
}

// Apply OS specific kernel configs if needed
d.initOS.Do(applyOStweaks)

return nil
}

Expand Down

0 comments on commit 9d298aa

Please sign in to comment.