live: assume VFAT is always FAT32

fdisk reports VFAT, however, OpenGnsys does not have such entry in the
filesystem table. Add an alias to FAT32 as a workaround.
more_events
Javier Sánchez Parra 2022-05-13 14:35:34 +02:00 committed by Jose M. Guisado
parent 621d1b9147
commit 6c441e94e2
1 changed files with 3 additions and 0 deletions

View File

@ -78,6 +78,9 @@ class OgLiveOperations:
part_setup['code'] = hex(code)[2:]
part_setup['size'] = str(int(size) // 1024)
if (part_setup['filesystem'] == 'VFAT'):
part_setup['filesystem'] = 'FAT32'
def _refresh_part_setup_cache(self, cxt, pa, part_setup, cache):
padev = cxt.partition_to_string(pa, fdisk.FDISK_FIELD_DEVICE)
if padev == cache: