Signed-off-by: Ryo Nakao <nakabonne@gmail.com>
| ... | ... |
@@ -922,11 +922,9 @@ func NewDaemon(ctx context.Context, config *config.Config, pluginStore *plugin.S |
| 922 | 922 |
if err != nil {
|
| 923 | 923 |
return nil, err |
| 924 | 924 |
} |
| 925 |
- } |
|
| 926 | 925 |
|
| 927 |
- // As layerstore initialization may set the driver |
|
| 928 |
- for os := range d.graphDrivers {
|
|
| 929 |
- d.graphDrivers[os] = layerStores[os].DriverName() |
|
| 926 |
+ // As layerstore initialization may set the driver |
|
| 927 |
+ d.graphDrivers[operatingSystem] = layerStores[operatingSystem].DriverName() |
|
| 930 | 928 |
} |
| 931 | 929 |
|
| 932 | 930 |
// Configure and validate the kernels security support. Note this is a Linux/FreeBSD |