forked from mirrors/ranger_udisk_menu
show fstype if no other label
This commit is contained in:
parent
0f34945b6a
commit
47df672c59
1 changed files with 2 additions and 0 deletions
2
menu.py
2
menu.py
|
@ -89,6 +89,8 @@ class ChoosePartition:
|
||||||
lab = part['partlabel']
|
lab = part['partlabel']
|
||||||
elif 'parttypename' not in part and part['parttypename'] is not None:
|
elif 'parttypename' not in part and part['parttypename'] is not None:
|
||||||
lab = part['parttypename']
|
lab = part['parttypename']
|
||||||
|
elif 'fstype' not in part and part['fstype'] is not None:
|
||||||
|
lab = part['fstype']
|
||||||
|
|
||||||
if 'mountpoint' not in part:
|
if 'mountpoint' not in part:
|
||||||
raise Exception('Wrong lsblk json format. No mountpoint')
|
raise Exception('Wrong lsblk json format. No mountpoint')
|
||||||
|
|
Loading…
Add table
Reference in a new issue