diff --git a/engine/resources/sysctl.go b/engine/resources/sysctl.go index 4fa2e72a..a8076902 100644 --- a/engine/resources/sysctl.go +++ b/engine/resources/sysctl.go @@ -47,6 +47,9 @@ import ( func init() { engine.RegisterResource("sysctl", func() engine.Res { return &SysctlRes{} }) + if !strings.HasPrefix(SysctlConfDir, "/") { + panic("the SysctlConfDir does not start with a slash") + } if !strings.HasSuffix(SysctlConfDir, "/") { panic("the SysctlConfDir does not end with a slash") }