fe5b34ba |
package system
import "os"
|
0380fbff |
// lcowSupported determines if Linux Containers on Windows are supported. |
fe5b34ba |
var lcowSupported = false
|
ff686743 |
// InitLCOW sets whether LCOW is supported or not |
0380fbff |
// TODO @jhowardmsft.
// 1. Replace with RS3 RTM build number.
// 2. Remove the getenv check when image-store is coalesced as shouldn't be needed anymore. |
ff686743 |
func InitLCOW(experimental bool) { |
0380fbff |
v := GetOSVersion()
if experimental && v.Build > 16270 && os.Getenv("LCOW_SUPPORTED") != "" { |
fe5b34ba |
lcowSupported = true
}
} |