Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds@gmail.com>2019-06-09 20:46:23 +0200
committerAnton Hvornum <anton.feeds@gmail.com>2019-06-09 20:46:23 +0200
commitf7cb0b819a087e7171205590678fc8a6da7cadff (patch)
tree137de5b70cc9bc590f76b37d91c52b0b24291483
parent55304a7cab19d6be36ba9200f8e2682f1d9cfa3d (diff)
Added partition size information in debug information printed
-rw-r--r--archinstall.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/archinstall.py b/archinstall.py
index 2971b28e..4d91cd9c 100644
--- a/archinstall.py
+++ b/archinstall.py
@@ -302,8 +302,9 @@ def grab_partitions(dev):
r = json.loads(o.decode('UTF-8'))
if len(r['blockdevices']) and 'children' in r['blockdevices'][0]:
for part in r['blockdevices'][0]['children']:
+ size = os.statvfs(dev + part['name'][len(drive_name):])
parts[part['name'][len(drive_name):]] = {
- # TODO: Grab partition info and store here?
+ 'size' : size.f_frsize * size.f_bavail
}
return parts