mirror of
https://github.com/lutris/lutris
synced 2024-10-06 15:59:39 +00:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
f07883d0f2
|
@ -164,6 +164,8 @@ class LinuxSystem: # pylint: disable=too-many-public-methods
|
|||
def get_drives():
|
||||
"""Return a list of drives with their filesystems"""
|
||||
lsblk_output = system.read_process_output(["lsblk", "-f", "--json"])
|
||||
if not lsblk_output:
|
||||
return []
|
||||
return [
|
||||
drive
|
||||
for drive in json.loads(lsblk_output)["blockdevices"]
|
||||
|
|
Loading…
Reference in a new issue