mirror of https://git.48k.eu/ogcp
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
parent
302a776c5f
commit
e11125ef9e
|
@ -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,
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue