Merge pull request 'refs #1912 fix a couple of rc' (#32) from test-configurar-py into main
ogclone-engine/pipeline/tag This commit looks good Details

Reviewed-on: #32
agent-stopped-on-poweroff 0.7.2
Natalia Serrano 2025-04-21 12:49:14 +02:00
commit a18e861bea
2 changed files with 8 additions and 2 deletions

View File

@ -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/), 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). and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [0.7.2] - 2025-04-21
### Fixed
- Have the partitioning functions return a meaningful rc
## [0.7.1] - 2025-04-15 ## [0.7.1] - 2025-04-15
### Fixed ### Fixed

View File

@ -179,7 +179,7 @@ def ogCreatePartitions (disk, parts):
p = subprocess.run (['sfdisk', DISK], input=sfdisk_input, capture_output=True, text=True) p = subprocess.run (['sfdisk', DISK], input=sfdisk_input, capture_output=True, text=True)
subprocess.run (['partprobe', DISK]) subprocess.run (['partprobe', DISK])
if CACHESIZE: CacheLib.ogMountCache() if CACHESIZE: CacheLib.ogMountCache()
return True return not p.returncode
#/** #/**
@ -285,7 +285,7 @@ def ogCreateGptPartitions (disk, parts):
p = subprocess.run (['sgdisk'] + DELOPTIONS + OPTIONS + [DISK], capture_output=True, text=True) p = subprocess.run (['sgdisk'] + DELOPTIONS + OPTIONS + [DISK], capture_output=True, text=True)
subprocess.run (['partprobe', DISK]) subprocess.run (['partprobe', DISK])
if CACHESIZE: CacheLib.ogMountCache() if CACHESIZE: CacheLib.ogMountCache()
return True return not p.returncode
#/** #/**