index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Dylan M. Taylor <dylan@dylanmtaylor.com> | 2021-11-23 15:10:21 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-23 21:10:21 +0100 |
commit | 72d02a391dd1f2aedaeaac59b943d8655366bb3e (patch) | |
tree | 55efd25c6e83b3c6c1927eab53fa958bfccccc9b /archinstall/lib/disk/blockdevice.py | |
parent | 6b6c9c84bed1e4640f5f46282da1767827f977a9 (diff) |
-rw-r--r-- | archinstall/lib/disk/blockdevice.py | 3 |
diff --git a/archinstall/lib/disk/blockdevice.py b/archinstall/lib/disk/blockdevice.py index c4802a5f..d8c34893 100644 --- a/archinstall/lib/disk/blockdevice.py +++ b/archinstall/lib/disk/blockdevice.py @@ -2,7 +2,6 @@ import os import json import logging import time -from .helpers import convert_size_to_gb from ..exceptions import DiskError from ..output import log from ..general import SysCommand @@ -156,6 +155,8 @@ class BlockDevice: @property def size(self): + from .helpers import convert_size_to_gb + output = json.loads(SysCommand(f"lsblk --json -b -o+SIZE {self.path}").decode('UTF-8')) for device in output['blockdevices']: |