From e27ba997a65ec3e127d12e44a090c3f73f9cf00a Mon Sep 17 00:00:00 2001 From: O F Date: Wed, 29 May 2024 13:03:16 -0700 Subject: [PATCH] fix(ds-host): do not check bwrap paths if bwrap not enabled --- cmd/ds-host/runtimeconfig/runtimeconfig.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/cmd/ds-host/runtimeconfig/runtimeconfig.go b/cmd/ds-host/runtimeconfig/runtimeconfig.go index 54a3f4dd..92dc8b7e 100644 --- a/cmd/ds-host/runtimeconfig/runtimeconfig.go +++ b/cmd/ds-host/runtimeconfig/runtimeconfig.go @@ -61,8 +61,11 @@ func Load(configFile string) *domain.RuntimeConfig { validateConfig(rtc) checkDirExists(rtc.DataDir, "data") - for _, p := range rtc.Sandbox.BwrapMapPaths { - checkDirExists(p, "bwrap-map-paths") + + if rtc.Sandbox.UseBubblewrap { + for _, p := range rtc.Sandbox.BwrapMapPaths { + checkDirExists(p, "bwrap-map-paths") + } } setExec(rtc)