refs #2856 allow to create images in regular ogLive (not ogLiveAdmin) #126

Merged
nserrano merged 1 commits from crearimagen-oglive-no-admin into main 2025-10-02 10:26:57 +02:00
3 changed files with 10 additions and 1 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).
## [1.7.1] - 2025-10-02
### Fixed
- Allow to create images in regular ogLive (not ogLiveAdmin)
## [1.7.0] - 2025-09-29
### Added

View File

@ -73,7 +73,7 @@ if 'REPO' == repo or ogCheckIpAddress (repo):
sys.exit (1)
# Si el destino es REPO y el cliente no está en modo "admin"; activar repositorio para escritura,
if 'REPO' == repo and 'admin' != env_boot:
if 'admin' != env_boot:
retval = subprocess.run ([f'{dirname}/CambiarAcceso', 'admin']).returncode
if retval:
sys.exit (retval)

View File

@ -546,6 +546,9 @@ class OpengnsysGitLibrary:
def _efi_copy(self, root_directory, system_specific = False, config_name = None):
meta_dir = os.path.join(root_directory, ".opengnsys-metadata")
boot_device = self.fs.find_boot_device()
if boot_device is None:
self.logger.warning("Not copying EFI--boot_device is None")
return
boot_mount = self.fs.find_mountpoint(boot_device)
efi_files_dir = ""