From fc9436e90f59243e03865c73c17d13e13f2a5fbd Mon Sep 17 00:00:00 2001 From: Hamza El-Saawy Date: Tue, 19 Apr 2022 13:59:56 -0400 Subject: [PATCH] Linux GCS flags use 1 -, not 2 Signed-off-by: Hamza El-Saawy --- internal/uvm/create_lcow.go | 4 ++-- .../github.com/Microsoft/hcsshim/internal/uvm/create_lcow.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/uvm/create_lcow.go b/internal/uvm/create_lcow.go index 79a065454e..596964a308 100644 --- a/internal/uvm/create_lcow.go +++ b/internal/uvm/create_lcow.go @@ -660,11 +660,11 @@ func makeLCOWDoc(ctx context.Context, opts *OptionsLCOW, uvm *UtilityVM) (_ *hcs } if opts.DisableTimeSyncService { - opts.ExecCommandLine = fmt.Sprintf("%s --disable-time-sync", opts.ExecCommandLine) + opts.ExecCommandLine = fmt.Sprintf("%s -disable-time-sync", opts.ExecCommandLine) } if log.IsScrubbingEnabled() { - opts.ExecCommandLine += " --scrub-logs" + opts.ExecCommandLine += " -scrub-logs" } execCmdArgs += " " + opts.ExecCommandLine diff --git a/test/vendor/github.com/Microsoft/hcsshim/internal/uvm/create_lcow.go b/test/vendor/github.com/Microsoft/hcsshim/internal/uvm/create_lcow.go index 79a065454e..596964a308 100644 --- a/test/vendor/github.com/Microsoft/hcsshim/internal/uvm/create_lcow.go +++ b/test/vendor/github.com/Microsoft/hcsshim/internal/uvm/create_lcow.go @@ -660,11 +660,11 @@ func makeLCOWDoc(ctx context.Context, opts *OptionsLCOW, uvm *UtilityVM) (_ *hcs } if opts.DisableTimeSyncService { - opts.ExecCommandLine = fmt.Sprintf("%s --disable-time-sync", opts.ExecCommandLine) + opts.ExecCommandLine = fmt.Sprintf("%s -disable-time-sync", opts.ExecCommandLine) } if log.IsScrubbingEnabled() { - opts.ExecCommandLine += " --scrub-logs" + opts.ExecCommandLine += " -scrub-logs" } execCmdArgs += " " + opts.ExecCommandLine