From 1b5281c2a1eb9e48d28eee1ad7aef7f5bcc21038 Mon Sep 17 00:00:00 2001 From: "Jose M. Guisado" Date: Tue, 7 Jun 2022 10:20:52 +0200 Subject: 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) --- src/live/ogOperations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/live/ogOperations.py b/src/live/ogOperations.py index c93212d..a576389 100644 --- a/src/live/ogOperations.py +++ b/src/live/ogOperations.py @@ -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 -- cgit v1.2.3-18-g5258