show fstype if no other label

This commit is contained in:
Alexander Lutsai 2021-04-26 16:31:57 +03:00
parent 0f34945b6a
commit 47df672c59

View File

@ -89,6 +89,8 @@ class ChoosePartition:
lab = part['partlabel']
elif 'parttypename' not in part and part['parttypename'] is not None:
lab = part['parttypename']
elif 'fstype' not in part and part['fstype'] is not None:
lab = part['fstype']
if 'mountpoint' not in part:
raise Exception('Wrong lsblk json format. No mountpoint')