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:
parent
569697e9a9
commit
234997eeb3
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue