live: enable details for libfdisk context object

Enables details in libfidsk context constructor call. Ensures size are
displayed as bytes (and not as a human readable string).

Avoids further arithmetical errors (e.g: converting from bytes to KB)
more_events v1.2.1
Jose M. Guisado 2022-06-07 10:20:52 +02:00
parent c159c76294
commit 1b5281c2a1
1 changed files with 1 additions and 1 deletions

View File

@ -332,7 +332,7 @@ class OgLiveOperations:
logging.debug('refresh: processing %s', disk)
part_setup = {}
try:
cxt = fdisk.Context(device=f'/dev/{disk}')
cxt = fdisk.Context(device=f'/dev/{disk}', details=True)
except:
continue