adjust cherry-pick moby/moby@b9255e4 to work without lcow

Because the LCOW support is not part of this codebase, removing the
lines that expect it to be there.

Signed-off-by: Andrew Hsu <andrewhsu@docker.com>
This commit is contained in:
Andrew Hsu
2017-07-12 22:56:09 +00:00
parent dfe4a1d9f2
commit 31875af469
@@ -397,11 +397,7 @@ func checkValidParent(img, parent *image.Image) bool {
}
func checkCompatibleOS(os string) error {
// TODO @jhowardmsft LCOW - revisit for simultaneous platforms
platform := runtime.GOOS
if system.LCOWSupported() {
platform = "linux"
}
// always compatible if the OS matches; also match an empty OS
if os == platform || os == "" {
return nil