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

Merge pull request #38790 from nakabonne/refactor-setting-graph-driver

Refactor setting graph driver name
This commit is contained in:
Sebastiaan van Stijn 2019-02-28 10:42:09 +01:00 committed by GitHub
commit 8df160dde7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -922,11 +922,9 @@ func NewDaemon(ctx context.Context, config *config.Config, pluginStore *plugin.S
if err != nil {
return nil, err
}
}
// As layerstore initialization may set the driver
for os := range d.graphDrivers {
d.graphDrivers[os] = layerStores[os].DriverName()
// As layerstore initialization may set the driver
d.graphDrivers[operatingSystem] = layerStores[operatingSystem].DriverName()
}
// Configure and validate the kernels security support. Note this is a Linux/FreeBSD