Signed-off-by: Victor Vieux <victorvieux@gmail.com>
| ... | ... |
@@ -99,6 +99,8 @@ func (cli *DaemonCli) start(opts *daemonOptions) (err error) {
|
| 99 | 99 |
FullTimestamp: true, |
| 100 | 100 |
}) |
| 101 | 101 |
|
| 102 |
+ system.InitLCOW(cli.Config.Experimental) |
|
| 103 |
+ |
|
| 102 | 104 |
if err := setDefaultUmask(); err != nil {
|
| 103 | 105 |
return fmt.Errorf("Failed to set umask: %v", err)
|
| 104 | 106 |
} |
| ... | ... |
@@ -8,9 +8,10 @@ import "os" |
| 8 | 8 |
// on build number. @jhowardmsft |
| 9 | 9 |
var lcowSupported = false |
| 10 | 10 |
|
| 11 |
-func init() {
|
|
| 11 |
+// InitLCOW sets whether LCOW is supported or not |
|
| 12 |
+func InitLCOW(experimental bool) {
|
|
| 12 | 13 |
// LCOW initialization |
| 13 |
- if os.Getenv("LCOW_SUPPORTED") != "" {
|
|
| 14 |
+ if experimental && os.Getenv("LCOW_SUPPORTED") != "" {
|
|
| 14 | 15 |
lcowSupported = true |
| 15 | 16 |
} |
| 16 | 17 |
|