mirror of https://git.48k.eu/ogcp
forms: add support for UNICAST image restore
Add UNICAST and UNICAST-DIRECT to the image restore form. UNICAST-DIRECT will transfer the images through a samba share and proceed with the restore process without using any cache partition. UNICAST will try to first copy the image to the cache partition and generate the full.sum file. Then the restore process is executed.master
parent
462e6fb0ad
commit
4c97b671aa
|
@ -104,7 +104,9 @@ class ImageRestoreForm(FlaskForm):
|
|||
partition = SelectField(label=_l('Partition'), choices=[])
|
||||
image = SelectField(label=_l('Image'), choices=[])
|
||||
method = SelectField(label=_l('Method'),
|
||||
choices=[('TIPTORRENT', 'TIPTORRENT')])
|
||||
choices=[('TIPTORRENT', 'TIPTORRENT'),
|
||||
('UNICAST', 'UNICAST'),
|
||||
('UNICAST-DIRECT', 'UNICAST-DIRECT')])
|
||||
restore = SubmitField(label=_l('Restore'))
|
||||
|
||||
class RepoForm(FlaskForm):
|
||||
|
|
Loading…
Reference in New Issue