refs #477 Changes oglive location

ogboot_installer
Luis Gerardo Romero Garcia 2024-07-02 09:35:01 +02:00
parent 1dc0877f6c
commit e8d30f62e3
1 changed files with 3 additions and 1 deletions

View File

@ -590,12 +590,14 @@ TFTP_OPTIONS="--secure"
if not os.path.exists(TFTPCFGDIR):
os.makedirs(TFTPCFGDIR, mode=0o750, exist_ok=True)
logger.info(f"Directory {TFTPCFGDIR} created.")
else:
logger.warning(f"Directory {TFTPCFGDIR} exist.")
#Descargar oglive
logger.info("Downloading oglive...")
#Temporalmente se copia desde ~/oglive
# copiar desde el montaje /mnt/srv/artefactos/ogboot/tftpboot/
logger.error(f"___________/home/qindel/ogboot/installer___________________Intentando copiar desde ...{PROGRAM_DIR} a {TFTPCFGDIR}")
subprocess.run(["cp", "-r", f"/tmp/tftpboot/tftpboot/ogLive-5.11.0-r20210413", f"{TFTPCFGDIR}/"])
subprocess.run(["cp", "-r", f"/tmp/tftpboot/ogLive-5.11.0-r20210413", f"{TFTPCFGDIR}/"])
subprocess.run(["cp", "-r", f"/tmp/tftpboot/ipxe", f"{TFTPCFGDIR}/"])
#Crear enlace simbólico de oglive-5.11.0-r20210413 a /var/lib/tftpboot/ogLive
subprocess.run(["ln", "-s", f"{TFTPCFGDIR}/ogLive-5.11.0-r20210413", "{TFTPCFGDIR}/ogLive"])