Skip to content

Commit

Permalink
docs(action): improve error message on missing coreboot blob
Browse files Browse the repository at this point in the history
Signed-off-by: AtomicFS <vojtech.vesely@9elements.com>
  • Loading branch information
AtomicFS committed Nov 28, 2024
1 parent ce6e90f commit 6dae629
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion action/recipes/coreboot.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ func (opts CorebootOpts) GetArtifacts() *[]container.Artifacts {
return opts.CommonOpts.GetArtifacts()
}

// corebootProcessBlobs is used to fill figure out blobs from provided data.
// corebootProcessBlobs is used to figure out blobs from provided data
func corebootProcessBlobs(opts CorebootBlobs) ([]BlobDef, error) {
blobMap := map[string]BlobDef{
// Payload
Expand Down Expand Up @@ -299,6 +299,11 @@ func (opts CorebootOpts) buildFirmware(ctx context.Context, client *dagger.Clien

// Copy into container
if err = filesystem.CheckFileExists(src); !errors.Is(err, os.ErrExist) {
slog.Error(
fmt.Sprintf("Blob '%s' was not found", src),
slog.String("suggestion", "blobs are copied into container separately from 'input_files' and 'input_dirs', the path should point to files on your host"),
slog.Any("error", err),
)
return nil, err
}
if blobs[blob].IsDirectory {
Expand Down

0 comments on commit 6dae629

Please sign in to comment.