distro/fedora: only pass kernelName to NewOSPipeline for bootable images
If the image is not bootable it means that we do not need the kernel version and thus we should not pass it along to `NewOSPipeline`, because we might not even have a kernel in the package set.
This commit is contained in:
parent
49559d53d7
commit
59edcc4a46
1 changed files with 6 additions and 1 deletions
|
|
@ -201,7 +201,12 @@ func osPipeline(buildPipeline *pipeline.BuildPipeline,
|
|||
bootLoader = pipeline.BOOTLOADER_GRUB
|
||||
}
|
||||
|
||||
pl := pipeline.NewOSPipeline(buildPipeline, t.rpmOstree, options.OSTree.Parent, repos, packages, pt, bootLoader, t.arch.legacy, c.GetKernel().Name)
|
||||
var kernelName string
|
||||
if t.bootable {
|
||||
kernelName = c.GetKernel().Name
|
||||
}
|
||||
|
||||
pl := pipeline.NewOSPipeline(buildPipeline, t.rpmOstree, options.OSTree.Parent, repos, packages, pt, bootLoader, t.arch.legacy, kernelName)
|
||||
|
||||
if t.supportsUEFI() {
|
||||
pl.UEFIVendor = t.arch.distro.vendor
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue