Update disk.py

This commit is contained in:
Anton Hvornum 2020-12-07 15:35:29 +01:00
parent a8bb3b4bb3
commit 5882fa9587
1 changed files with 1 additions and 1 deletions

View File

@ -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}')