diff --git a/cmd/dist/rootfs.go b/cmd/dist/rootfs.go index bff327149..ca4e40e4c 100644 --- a/cmd/dist/rootfs.go +++ b/cmd/dist/rootfs.go @@ -110,7 +110,6 @@ var rootfsInitCommand = cli.Command{ for _, m := range resp.Mounts { fmt.Fprintf(os.Stdout, "mount -t %s %s %s -o %s\n", m.Type, m.Source, target, strings.Join(m.Options, ",")) } - log.G(ctx).Infof("Mount response: %#v", resp) return nil }, diff --git a/rootfs/init.go b/rootfs/init.go index ebcae81a2..4acbf7e00 100644 --- a/rootfs/init.go +++ b/rootfs/init.go @@ -44,10 +44,6 @@ func InitRootFS(ctx context.Context, name string, parent digest.Digest, readonly return snapshotter.Prepare(ctx, name, parentS) } -func GetRootFS(ctx context.Context, name string, snapshotter snapshot.Snapshotter) ([]containerd.Mount, error) { - return snapshotter.Mounts(ctx, name) -} - func createInitLayer(ctx context.Context, parent, initName string, initFn func(string) error, snapshotter snapshot.Snapshotter, mounter Mounter) (string, error) { initS := fmt.Sprintf("%s %s", parent, initName) if _, err := snapshotter.Stat(ctx, initS); err == nil { diff --git a/services/rootfs/service.go b/services/rootfs/service.go index 362b52614..21c98caa4 100644 --- a/services/rootfs/service.go +++ b/services/rootfs/service.go @@ -75,7 +75,7 @@ func (s *Service) Prepare(ctx context.Context, ir *rootfsapi.PrepareRequest) (*r } func (s *Service) Mounts(ctx context.Context, mr *rootfsapi.MountsRequest) (*rootfsapi.MountResponse, error) { - mounts, err := rootfs.GetRootFS(ctx, mr.Name, s.snapshotter) + mounts, err := s.snapshotter.Mounts(ctx, mr.Name) if err != nil { return nil, err }