stages/grub2.inst: fix prefix for dos layouts

When the partition layout is `dos` or `mbr`, the correct name for
it in the prefix is `msdos`. The function to convert the option
to the label already existed but was not used. Fix it by actually
using said function.

Reported-by: Achilleas Koutsou <achilleas@koutsou.net>
This commit is contained in:
Christian Kellner 2021-08-10 15:00:28 +00:00
parent 569697e9a9
commit 234997eeb3

View file

@ -251,7 +251,9 @@ def prefix_partition(options: Dict):
number += 1
path = path.lstrip("/")
prefix = f"(,{pt_label}{number})/{path}"
label = grub2_partition_id(pt_label)
prefix = f"(,{label}{number})/{path}"
return prefix