diff --git a/CHANGELOG.md b/CHANGELOG.md index c45ab03..daf6217 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.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 diff --git a/ogclient/lib/python3/BootLib.py b/ogclient/lib/python3/BootLib.py index 5224539..71e2738 100644 --- a/ogclient/lib/python3/BootLib.py +++ b/ogclient/lib/python3/BootLib.py @@ -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.