Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds@gmail.com>2021-06-15 11:51:29 +0200
committerAnton Hvornum <anton.feeds@gmail.com>2021-06-15 11:51:29 +0200
commit20e759d4cc60e78d8d769ec2239aab1b0233a59d (patch)
treefabd43c45ae3534176f0c307fa36a4e1a8d97c23 /archinstall
parent0079f3d95c2f8ac99dfb608a3c71ddaefa0c74b1 (diff)
Added more detail to BlockDevice.__repr__
Diffstat (limited to 'archinstall')
-rw-r--r--archinstall/lib/disk.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/archinstall/lib/disk.py b/archinstall/lib/disk.py
index c0d961b9..76871352 100644
--- a/archinstall/lib/disk.py
+++ b/archinstall/lib/disk.py
@@ -221,7 +221,7 @@ class BlockDevice:
# I'm placing the encryption password on a BlockDevice level.
def __repr__(self, *args, **kwargs):
- return f"BlockDevice({self.device})"
+ return f"BlockDevice({self.device}, size={self.size}GB, free_space={'+'.join(part[2] for part in self.free_space)}, bus_type={self.bus_type})"
def __iter__(self):
for partition in self.partitions: