Update disk.py
This commit is contained in:
parent
a8bb3b4bb3
commit
5882fa9587
|
|
@ -77,7 +77,7 @@ class BlockDevice():
|
|||
|
||||
#o = b''.join(sys_command('/usr/bin/lsblk -o name -J -b {dev}'.format(dev=dev)))
|
||||
o = b''.join(sys_command(f'/usr/bin/lsblk -J {self.path}'))
|
||||
print(self, 'paritions:', o)
|
||||
print(self, 'partitions:', o.decode('UTF-8'))
|
||||
if b'not a block device' in o:
|
||||
raise DiskError(f'Can not read partitions off something that isn\'t a block device: {self.path}')
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue