replace bios_grub label with (slightly) English words
This commit is contained in:
parent
faa9473a25
commit
a33682f101
|
@ -78,7 +78,7 @@ def _annotations_partition(partition):
|
|||
r.append(_("configured"))
|
||||
else:
|
||||
r.append(_("unconfigured"))
|
||||
r.append(_("bios_grub"))
|
||||
r.append(_("BIOS grub spacer"))
|
||||
elif partition.flag == "extended":
|
||||
# extended partition
|
||||
r.append(_("extended"))
|
||||
|
|
|
@ -234,13 +234,15 @@ class TestFilesystemModel(unittest.TestCase):
|
|||
model = make_model()
|
||||
part = make_partition(model, flag="bios_grub")
|
||||
self.assertEqual(
|
||||
annotations(part), ['new', 'bios_grub'])
|
||||
annotations(part), ['new', 'BIOS grub spacer'])
|
||||
part.preserve = True
|
||||
self.assertEqual(
|
||||
annotations(part), ['existing', 'unconfigured', 'bios_grub'])
|
||||
annotations(part),
|
||||
['existing', 'unconfigured', 'BIOS grub spacer'])
|
||||
part.device.grub_device = True
|
||||
self.assertEqual(
|
||||
annotations(part), ['existing', 'configured', 'bios_grub'])
|
||||
annotations(part),
|
||||
['existing', 'configured', 'BIOS grub spacer'])
|
||||
|
||||
model = make_model()
|
||||
part = make_partition(model, flag="boot", grub_device=True)
|
||||
|
|
Loading…
Reference in New Issue