Skip to content

Commit 837c568

Browse files
committed
hcsoci: Remove Plan9 rootfs support
1 parent 1d69a9c commit 837c568

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

internal/hcsoci/resources_lcow.go

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -41,17 +41,6 @@ func allocateLinuxResources(ctx context.Context, coi *createOptionsInternal, r *
4141
r.SetLayers(closer)
4242
}
4343
r.SetLcowScratchPath(scratchPath)
44-
} else if coi.Spec.Root.Path != "" {
45-
// This is the "Plan 9" root filesystem.
46-
// TODO: We need a test for this. Ask @jstarks how you can even lay this out on Windows.
47-
hostPath := coi.Spec.Root.Path
48-
uvmPathForContainersFileSystem := path.Join(r.ContainerRootInUVM(), guestpath.RootfsPath)
49-
share, err := coi.HostingSystem.AddPlan9(ctx, hostPath, uvmPathForContainersFileSystem, coi.Spec.Root.Readonly, false, nil)
50-
if err != nil {
51-
return errors.Wrap(err, "adding plan9 root")
52-
}
53-
coi.Spec.Root.Path = uvmPathForContainersFileSystem
54-
r.Add(share)
5544
} else {
5645
return errors.New("must provide either Windows.LayerFolders or Root.Path")
5746
}

0 commit comments

Comments
 (0)