in hook/state.go [38:47]
func Root(bundlePath string, spec specs.Spec) (string, error) {
if spec.Root == nil || len(spec.Root.Path) == 0 {
return "", errors.New("undefined root path")
}
path := spec.Root.Path
if path[0] != '/' {
path = filepath.Join(bundlePath, path)
}
return path, nil
}