Rename MSDOS to MBR

This commit rename partition table type MSDOS to MBR in the front-end.

At the back-end ogCP still uses MSDOS string because ogClient scripts
(aka cloning engine) expects it.
multi-ogserver
Javier Sánchez Parra 2022-01-20 08:06:58 +01:00
parent 302a776c5f
commit e11125ef9e
2 changed files with 3 additions and 1 deletions

View File

@ -61,7 +61,7 @@ class SetupForm(FlaskForm):
ips = HiddenField()
disk = HiddenField()
disk_type = SelectField(label=_l('Type'),
choices=[('MSDOS', 'MSDOS'),
choices=[('MSDOS', 'MBR'),
('GPT', 'GPT')])
partitions = FieldList(FormField(PartitionForm),
min_entries=1,

View File

@ -581,6 +581,8 @@ def action_client_info():
images = r.json()['images']
setup = get_client_setup(ips)
if setup and setup[0].get('code') == 'MSDOS':
setup[0]['code'] = 'MBR'
for entry in setup:
if images and entry['image'] != 0: