Merge pull request 'fix-ogboot' (#34) from fix-ogboot into main
ogclient/pipeline/head This commit looks good Details
ogclient/pipeline/tag This commit looks good Details

Reviewed-on: #34
pull/35/head 0.8.1
Natalia Serrano 2025-05-07 11:46:57 +02:00
commit 6a18e1a0ba
2 changed files with 9 additions and 0 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/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [0.8.1] - 2025-05-07
### Fixed
- Gracefully handle error in ogBoot() when not finding /boot partition in target's fstab
## [0.8.0] - 2025-04-23
### Added

View File

@ -79,6 +79,9 @@ def ogBoot (disk, par, nvramperm=False, params=''):
break
if dev:
fstab_part = DiskLib.ogDevToDisk (dev)
if not fstab_part:
SystemLib.ogRaiseError ([], ogGlobals.OG_ERR_NOTOS, f'{disk} {par} ({dev})')
return None
else:
return None
# Montar S.F. de /boot.