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 <christian@kellner.me>
This commit is contained in:
Achilleas Koutsou 2022-02-22 20:13:12 +01:00 committed by Christian Kellner
parent e9daacd1dd
commit a7c702c4ae

View file

@ -74,10 +74,6 @@ func NewGrub2StageOptions(pt *disk.PartitionTable,
}
}
if !uefi {
stageOptions.Legacy = legacy
}
if kernel != nil {
if kernel.Append != "" {
stageOptions.KernelOptions += " " + kernel.Append