From afe190c47dd33bc8d57aa18ea7c83f0bd8058c93 Mon Sep 17 00:00:00 2001 From: Natalia Serrano Date: Wed, 28 May 2025 14:30:39 +0200 Subject: [PATCH] refs #2105 show sgdisk error --- CHANGELOG.md | 6 ++++++ ogclient/lib/python3/DiskLib.py | 1 + 2 files changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index b672ffb..51e9f0f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.13.4] - 2025-05-28 + +### Changed + +- Show sgdisk output + ## [0.13.3] - 2025-05-28 ### Fixed diff --git a/ogclient/lib/python3/DiskLib.py b/ogclient/lib/python3/DiskLib.py index 1213358..e61f033 100644 --- a/ogclient/lib/python3/DiskLib.py +++ b/ogclient/lib/python3/DiskLib.py @@ -283,6 +283,7 @@ def ogCreateGptPartitions (disk, parts): # Definir particiones y notificar al kernel. p = subprocess.run (['sgdisk'] + DELOPTIONS + OPTIONS + [DISK], capture_output=True, text=True) + print (f'sgdisk rc ({p.returncode}) stdout ({p.stdout}) stderr ({p.stderr})') subprocess.run (['partprobe', DISK]) if CACHESIZE: CacheLib.ogMountCache() return not p.returncode