Skip to content
This repository has been archived by the owner on Jul 28, 2021. It is now read-only.

Commit

Permalink
Merge pull request #95 from Microsoft/dns_resolv_conf
Browse files Browse the repository at this point in the history
Changing base layer order
  • Loading branch information
soccerGB committed Aug 4, 2017
2 parents 285d650 + 1decdad commit 7f54f58
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions service/gcs/core/gcs/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ import (

"github.com/Microsoft/opengcs/service/gcs/oslayer"
"github.com/Microsoft/opengcs/service/gcs/prot"
"github.com/sirupsen/logrus"
oci "github.com/opencontainers/runtime-spec/specs-go"
"github.com/pkg/errors"
"github.com/sirupsen/logrus"
)

const (
Expand Down Expand Up @@ -319,15 +319,15 @@ func (c *gcsCore) mountLayers(id string, scratchMount *mountSpec, layers []*moun
if err := layer.Mount(c.OS, layerPath); err != nil {
return errors.Wrapf(err, "failed to mount layer directory %s", layerPath)
}
layerPaths[i] = layerPath
layerPaths[i+1] = layerPath
}
// TODO: The base path code may be temporary until a more permanent DNS
// solution is reached.
// NOTE: This should probably still always be kept, because otherwise
// mounting will fail when no layer devices are attached. There should
// always be at least one layer, even if it's empty, to prevent this
// from happening.
layerPaths[len(layerPaths)-1] = baseFilesPath
layerPaths[0] = baseFilesPath

// Mount the layers into a union filesystem.
var mountOptions uintptr
Expand Down

0 comments on commit 7f54f58

Please sign in to comment.