mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Merge pull request #1497 from Salamandar/patch-1
tools_postinstall: list all partitions (not only physical ones)
This commit is contained in:
commit
66d416a37a
1 changed files with 1 additions and 1 deletions
|
@ -219,7 +219,7 @@ def tools_postinstall(
|
|||
)
|
||||
|
||||
# Check there's at least 10 GB on the rootfs...
|
||||
disk_partitions = sorted(psutil.disk_partitions(), key=lambda k: k.mountpoint)
|
||||
disk_partitions = sorted(psutil.disk_partitions(all=True), key=lambda k: k.mountpoint)
|
||||
main_disk_partitions = [d for d in disk_partitions if d.mountpoint in ["/", "/var"]]
|
||||
main_space = sum(
|
||||
psutil.disk_usage(d.mountpoint).total for d in main_disk_partitions
|
||||
|
|
Loading…
Add table
Reference in a new issue