Skip to content

Commit

Permalink
fix(pkg/driver): create envmap if nil since driverkit expects it.
Browse files Browse the repository at this point in the history
Signed-off-by: Federico Di Pierro <[email protected]>
  • Loading branch information
FedeDP authored and poiana committed May 8, 2024
1 parent d0523ca commit 7982692
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/driver/distro/distro.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,10 @@ func Build(ctx context.Context,
return "", err
}

if env == nil {
env = make(map[string]string)
}

// Disable automatic kernel headers fetching
// if customizeBuild already retrieved kernel headers for us
// (and has set the KernelDirEnv key)
Expand Down

0 comments on commit 7982692

Please sign in to comment.