Skip to content

Commit

Permalink
osbuild: rename NewGrub2StageOptionsUnified to NewGrub2StageOptions
Browse files Browse the repository at this point in the history
The non-unified function is gone and we only have one options generator
so let's keep the name simple.
  • Loading branch information
achilleas-k authored and mvo5 committed Jan 16, 2024
1 parent 79182e6 commit 75781e2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/manifest/os.go
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@ func (p *OS) serialize() osbuild.Pipeline {
),
)
} else {
options := osbuild.NewGrub2StageOptionsUnified(pt,
options := osbuild.NewGrub2StageOptions(pt,
strings.Join(kernelOptions, " "),
p.kernelVer,
p.platform.GetUEFIVendor() != "",
Expand Down
2 changes: 1 addition & 1 deletion pkg/manifest/ostree_deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ func (p *OSTreeDeployment) serialize() osbuild.Pipeline {
}
}

grubOptions := osbuild.NewGrub2StageOptionsUnified(p.PartitionTable,
grubOptions := osbuild.NewGrub2StageOptions(p.PartitionTable,
strings.Join(kernelOpts, " "),
"",
p.platform.GetUEFIVendor() != "",
Expand Down
2 changes: 1 addition & 1 deletion pkg/osbuild/grub2_stage.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func NewGRUB2Stage(options *GRUB2StageOptions) *Stage {
}
}

func NewGrub2StageOptionsUnified(pt *disk.PartitionTable,
func NewGrub2StageOptions(pt *disk.PartitionTable,
kernelOptions string,
kernelVer string,
uefi bool,
Expand Down

0 comments on commit 75781e2

Please sign in to comment.