Skip to content

Commit 9d298aa

Browse files
author
Flavio Crisciani
committed
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>
1 parent 7ec0ce6 commit 9d298aa

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

drivers/overlay/overlay.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,10 @@ func Fini(drv driverapi.Driver) {
180180
}
181181

182182
func (d *driver) configure() error {
183+
184+
// Apply OS specific kernel configs if needed
185+
d.initOS.Do(applyOStweaks)
186+
183187
if d.store == nil {
184188
return nil
185189
}
@@ -188,9 +192,6 @@ func (d *driver) configure() error {
188192
return d.initializeVxlanIdm()
189193
}
190194

191-
// Apply OS specific kernel configs if needed
192-
d.initOS.Do(applyOStweaks)
193-
194195
return nil
195196
}
196197

0 commit comments

Comments
 (0)