From a7c702c4ae315148134ce8a45ceb0fafc78fa393 Mon Sep 17 00:00:00 2001 From: Achilleas Koutsou Date: Tue, 22 Feb 2022 20:13:12 +0100 Subject: [PATCH] osbuild2: remove redundant option set condition The Legacy stage option is always set to the value from the function argument unconditionally. This condition is useless. Co-Authored-By: Christian Kellner --- internal/osbuild2/grub2_stage.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/internal/osbuild2/grub2_stage.go b/internal/osbuild2/grub2_stage.go index c59d28fc8..05ab173de 100644 --- a/internal/osbuild2/grub2_stage.go +++ b/internal/osbuild2/grub2_stage.go @@ -74,10 +74,6 @@ func NewGrub2StageOptions(pt *disk.PartitionTable, } } - if !uefi { - stageOptions.Legacy = legacy - } - if kernel != nil { if kernel.Append != "" { stageOptions.KernelOptions += " " + kernel.Append