refs #477 Changes oglive location
parent
1dc0877f6c
commit
e8d30f62e3
|
@ -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"])
|
||||
|
|
Loading…
Reference in New Issue