1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Fix OS tweaks call

The feature was not getting properly triggered, move it as
first operation in the configure

Signed-off-by: Flavio Crisciani <flavio.crisciani@docker.com>
This commit is contained in:
Flavio Crisciani 2017-06-06 20:30:41 -07:00
parent 23a2381954
commit 233aa636d7

View file

@ -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
}
@ -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
}