From 41f0efbf5c763f90c8fb3f56b9d12e6109312b24 Mon Sep 17 00:00:00 2001 From: Natalia Serrano Date: Wed, 7 May 2025 11:06:43 +0200 Subject: [PATCH 1/2] refs #1956 gracefully handle error --- ogclient/lib/python3/BootLib.py | 3 +++ 1 file changed, 3 insertions(+) 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. From 94ee50eff5a6ee520dd81e27461d0de17b8e5406 Mon Sep 17 00:00:00 2001 From: Natalia Serrano Date: Wed, 7 May 2025 11:46:31 +0200 Subject: [PATCH 2/2] refs #1956 gracefully handle error --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) 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