Skip to content

Commit

Permalink
distro/rhel85: don't always install bootloader
Browse files Browse the repository at this point in the history
Don't install bootloader unless `platform` (imageType.arch.legacy) is
defined.
  • Loading branch information
achilleas-k committed Jul 8, 2021
1 parent 399ff72 commit 155ce00
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/distro/rhel85/pipelines.go
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,9 @@ func liveImagePipeline(inputPipelineName string, outputFilename string, pt *disk
copyInputs := copyPipelineTreeInputs(inputName, inputPipelineName)
p.AddStage(osbuild.NewCopyStage(copyOptions, copyInputs, copyDevices, copyMounts))

p.AddStage(osbuild.NewGrub2InstStage(grub2InstStageOptions(outputFilename, pt, platform)))
if platform != "" {
p.AddStage(osbuild.NewGrub2InstStage(grub2InstStageOptions(outputFilename, pt, platform)))
}

return p
}
Expand Down

0 comments on commit 155ce00

Please sign in to comment.