summaryrefslogtreecommitdiffstats
path: root/ogcp/forms
diff options
context:
space:
mode:
authorJavier Sánchez Parra <jsanchez@soleta.eu>2021-08-24 12:58:25 +0200
committersoleta <soleta@soleta.eu>2021-08-24 13:35:42 +0200
commit37a03045751832e19cd8151b87e77da0878ca9b7 (patch)
tree018ba23f99ca7a00799958fe4127e63bbc3a220a /ogcp/forms
parent0bbae508f60b86cb77c3f05e43d4e86bb5d2980d (diff)
Add most common partition codes and filesystems
To increase the compatibility of "Partition & format" (aka setup).
Diffstat (limited to 'ogcp/forms')
-rw-r--r--ogcp/forms/action_forms.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/ogcp/forms/action_forms.py b/ogcp/forms/action_forms.py
index 1be2120..1722d8b 100644
--- a/ogcp/forms/action_forms.py
+++ b/ogcp/forms/action_forms.py
@@ -26,10 +26,26 @@ class PartitionForm(FlaskForm):
part_type = SelectField(label=_('Type'),
choices=[('LINUX', 'Linux'),
('NTFS', 'NTFS'),
+ ('CACHE', 'CACHE'),
+ ('EFI', 'EFI'),
+ ('DATA', 'DATA'),
+ ('LINUX-SWAP', 'LINUX-SWAP'),
+ ('EXTENDED', 'EXTENDED'),
+ ('FAT32', 'FAT32'),
+ ('LINUX-LVM', 'LINUX-LVM'),
+ ('LINUX-RAID', 'LINUX-RAID'),
+ ('WIN-RECOV', 'WIN-RECOV'),
+ ('HNTFS', 'HNTFS'),
+ ('HFAT32', 'HFAT32'),
+ ('HNTFS-WINRE', 'HNTFS-WINRE'),
('EMPTY', 'Empty')])
fs = SelectField(label=_('Filesystem'),
choices=[('EXT4', 'EXT4'),
('NTFS', 'NTFS'),
+ ('CACHE', 'CACHE'),
+ ('LINUX-SWAP', 'LINUX-SWAP'),
+ ('FAT32', 'FAT32'),
+ ('EXFAT', 'EXFAT'),
('EMPTY', 'Empty')])
size = IntegerField(label=_('Size (KB)'))
format_partition = BooleanField(label=_('Format'))