refs #597 improve doc and logging

pull/1/head
Natalia Serrano 2024-08-20 16:16:18 +02:00
parent 0ab0e61027
commit 2ee36ca086
2 changed files with 13 additions and 1 deletions

View File

@ -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: <function _acquireLock at 0x7fdac10f1f80>
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

View File

@ -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):