From e43e8baea11731101de26c921f4a8d46b8a5d475 Mon Sep 17 00:00:00 2001 From: Natalia Serrano Date: Mon, 23 Jun 2025 12:57:10 +0200 Subject: [PATCH] refs #2283 create boot mark file --- CHANGELOG.md | 6 ++++++ ogclient/scripts/configureOs.py | 8 ++++++++ 2 files changed, 14 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 61ab05b..42a5274 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.19.0] - 2025-06-23 + +### Changed + +- Write a mark for ogboot + ## [0.18.2] - 2025-06-19 ### Fixed diff --git a/ogclient/scripts/configureOs.py b/ogclient/scripts/configureOs.py index d89ae87..86e64c1 100755 --- a/ogclient/scripts/configureOs.py +++ b/ogclient/scripts/configureOs.py @@ -55,6 +55,14 @@ if not FileSystemLib.ogIsWritable (disk, par): # Nombre del cliente. host = NetLib.ogGetHostname() +# Marca para arranque. +boot_mark_file = f'/Part-{int(disk):02d}-{int(par):02d}' +try: + open (boot_mark_file, 'w').close() +except Exception as e: + print (f'Failed to create boot mark: {e}') + sys.exit (1) + # Post-configuración personalizada para cada tipo de sistema operativo. ostype = InventoryLib.ogGetOsType (disk, par) if 'Windows' == ostype: -- 2.40.1