index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Anton Hvornum <anton@hvornum.se> | 2021-11-11 18:40:41 +0100 |
---|---|---|
committer | Anton Hvornum <anton@hvornum.se> | 2021-11-11 18:40:41 +0100 |
commit | c0bf44e0ae82bf2e379e57965c0e21694b61cd3c (patch) | |
tree | 0a985138e0c438e90d1cfc1085e1ca6566f24110 /archinstall/lib/disk | |
parent | 6d2126a597c1fc9b3bc9ffc1d587a8fabbb51882 (diff) |
-rw-r--r-- | archinstall/lib/disk/blockdevice.py | 5 |
diff --git a/archinstall/lib/disk/blockdevice.py b/archinstall/lib/disk/blockdevice.py index 5d1ea267..307c5983 100644 --- a/archinstall/lib/disk/blockdevice.py +++ b/archinstall/lib/disk/blockdevice.py @@ -112,8 +112,8 @@ class BlockDevice: @property def partitions(self): from .filesystem import Partition - SysCommand(['partprobe', self.path]) + self.partprobe() result = SysCommand(['/usr/bin/lsblk', '-J', self.path]) if b'not a block device' in result: @@ -202,6 +202,9 @@ class BlockDevice: info = space_info return info + def partprobe(self): + SysCommand(['partprobe', self.path]) + def has_partitions(self): return len(self.partitions) |