From f35ffcc16f1a5596137035584d2328ff290d63ca Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Tue, 21 May 2019 12:23:44 +0200 Subject: pkg/host: don't enable binfmt_misc on non-linux The csource options lack any relation to the tested OS, while they do depend on the tested OS (most are linux-specific). As the result we enable binfmt_misc, but its setup fails on anything other than linux. As a work-around don't enable binfmt_misc on non-linux. --- pkg/host/host.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg') diff --git a/pkg/host/host.go b/pkg/host/host.go index 00bcde314..972656ad7 100644 --- a/pkg/host/host.go +++ b/pkg/host/host.go @@ -121,7 +121,7 @@ func Setup(target *prog.Target, features *Features, featureFlags csource.Feature if features[FeatureFaultInjection].Enabled { args = append(args, "fault") } - if featureFlags["binfmt_misc"].Enabled { + if target.OS == "linux" && featureFlags["binfmt_misc"].Enabled { args = append(args, "binfmt_misc") } _, err := osutil.RunCmd(time.Minute, "", executor, args...) -- cgit mrf-deployment