Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/disk
diff options
context:
space:
mode:
authorDidr <Didr@users.noreply.github.com>2021-11-01 13:05:09 +0100
committerGitHub <noreply@github.com>2021-11-01 13:05:09 +0100
commita868bc095de3d83213c3b246d569a808bfd85150 (patch)
tree41f7a90b22ff81212470883f073db4dbf966e0fb /archinstall/lib/disk
parentb8808491937a6140c9b4df00b4f27ef0405344a4 (diff)
Add import for all_disks
Diffstat (limited to 'archinstall/lib/disk')
-rw-r--r--archinstall/lib/disk/blockdevice.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/archinstall/lib/disk/blockdevice.py b/archinstall/lib/disk/blockdevice.py
index d278fa2e..0b0bb37c 100644
--- a/archinstall/lib/disk/blockdevice.py
+++ b/archinstall/lib/disk/blockdevice.py
@@ -7,6 +7,7 @@ from ..general import SysCommand
class BlockDevice:
def __init__(self, path, info=None):
if not info:
+ from .helpers import all_disks
# If we don't give any information, we need to auto-fill it.
# Otherwise any subsequent usage will break.
info = all_disks()[path].info
@@ -220,4 +221,4 @@ class BlockDevice:
def get_partition(self, uuid):
for partition in self:
if partition.uuid == uuid:
- return partition \ No newline at end of file
+ return partition