From 2ee36ca0866cfff6a5ad387f6aa5b84b6b8894b1 Mon Sep 17 00:00:00 2001 From: Natalia Serrano Date: Tue, 20 Aug 2024 16:16:18 +0200 Subject: [PATCH] refs #597 improve doc and logging --- INSTALL.es.txt | 12 ++++++++++++ mkoglive.py | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/INSTALL.es.txt b/INSTALL.es.txt index 86e7396..c33e334 100644 --- a/INSTALL.es.txt +++ b/INSTALL.es.txt @@ -34,8 +34,20 @@ Hace falta --privileged=true para que mkoglive.py pueda ejecutar, entre otras co El parámetro --codename permite especificar la versión de ubuntu. +También se puede especificar, por ejemplo, --loglevel DEBUG. + +Y también podemos indicar otro archivo de configuración usando --config. + Las imágenes se crean en ./ogclient. +Puede que durante la ejecución del contenedor salga un error como este: + + Exception ignored in: + Traceback (most recent call last): + File "/usr/lib/python3.12/logging/__init__.py", line 241, in _acquireLock + _lock.acquire() + +Es un bug conocido en la biblioteca "logging" de python, para el cual ya existe solución y solo es cuestión de tiempo que la versión de python incluida en ubuntu incluya el fix. Descripción de la estrucutra de boot-tools diff --git a/mkoglive.py b/mkoglive.py index 095e435..468884d 100755 --- a/mkoglive.py +++ b/mkoglive.py @@ -58,7 +58,7 @@ def _mkrootfs (btrootfsimg, btrootfsmnt, btrootfsimglabel, btvirtualdisksize, bt def _debootstrap (btrootfsimg, btrootfsmnt, osarch, oscodename, oshttp): logger.info ('Stage 1.2 - debootstrap system') - logger.debug ('Try creation of a file within chroot (this operation may fail with "... etc/resolv.conf: No such file or directory"--that is ok)') + logger.info ('Try creation of a file within chroot (this operation may fail with "... etc/resolv.conf: No such file or directory"--that is ok)') logger.debug ('Running \'schroot --chroot IMGogclient -- stat /etc\'') cp = subprocess.run (['schroot', '--chroot', 'IMGogclient', '--', 'stat', '/etc']) if (cp.returncode):