Skip to content

Commit

Permalink
Add a UKI field check.
Browse files Browse the repository at this point in the history
  • Loading branch information
lanzeliu committed Oct 22, 2024
1 parent 5cffc0b commit 9f5e8f1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions toolkit/tools/pkg/imagecustomizerlib/imagecustomizer.go
Original file line number Diff line number Diff line change
Expand Up @@ -390,9 +390,11 @@ func customizeOSContents(ic *ImageCustomizerParameters) error {
}
}

err = customizeUkiImageHelper(ic.buildDirAbs, ic.rawImageFile)
if err != nil {
return err
if ic.config.OS.Uki {
err = customizeUkiImageHelper(ic.buildDirAbs, ic.rawImageFile)
if err != nil {
return err
}
}

// Check file systems for corruption.
Expand Down

0 comments on commit 9f5e8f1

Please sign in to comment.