mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 19:01:39 -04:00
Adding exfat as valid drive format.
This commit is contained in:
parent
346e06cc2b
commit
2ce62b7fc4
1 changed files with 2 additions and 2 deletions
|
|
@ -252,7 +252,7 @@ DRIVE_REGEX = re.compile(r'^.+?' # filesystem
|
|||
r'\s+(.*)', # mount
|
||||
re.MULTILINE)
|
||||
IGNORED_DRIVES = ['/boot', '/etc']
|
||||
VALID_FORMATS = {'btrfs', 'ext4', 'ext3', 'ext2', 'vfat'}
|
||||
VALID_FORMATS = {'btrfs', 'ext4', 'ext3', 'ext2', 'vfat', 'exfat'}
|
||||
|
||||
|
||||
def get_drives_info_psutil() -> List[DriveInfo]:
|
||||
|
|
@ -265,7 +265,7 @@ def get_drives_info_psutil() -> List[DriveInfo]:
|
|||
if disk.fstype not in VALID_FORMATS:
|
||||
continue
|
||||
if disk.device not in info:
|
||||
# Only use the first use of the partition.
|
||||
# Only use the first partition.
|
||||
usage = psutil.disk_usage(disk.mountpoint)
|
||||
info[disk.device] = DriveInfo(
|
||||
mount=disk.mountpoint,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue