diff options
author | Alejandro Sirgo Rica <asirgo@soleta.eu> | 2024-11-05 11:20:59 +0100 |
---|---|---|
committer | Alejandro Sirgo Rica <asirgo@soleta.eu> | 2024-11-05 11:20:59 +0100 |
commit | a440b9da47d40bbcaad2a64c54825393b43be988 (patch) | |
tree | 5bbd51698648378d0dd79254713b8213e6e742d3 | |
parent | 64f1f5403e014a944e70187e6eda9a02c08eac3e (diff) |
live: fix error report in partition and format
Fix error codepath and properly mark the operation as failed.
-rw-r--r-- | src/live/ogOperations.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/live/ogOperations.py b/src/live/ogOperations.py index 2ae0104..cee55e5 100644 --- a/src/live/ogOperations.py +++ b/src/live/ogOperations.py @@ -531,7 +531,7 @@ class OgLiveOperations: else: err = mkfs(fs, disk, partition) - if err == -1: + if err != 0: raise OgError(f'Failed to format {part["partition"]} with filesystem {part["filesystem"]}') ret = subprocess.run(['partprobe', f'/dev/{diskname}']) |