refs #202 adds pxe_default to the ogboot target

ogboot_installer
Luis Gerardo Romero Garcia 2024-07-12 14:44:07 +02:00
parent dddf198935
commit f0544f4515
1 changed files with 4 additions and 1 deletions

View File

@ -359,7 +359,7 @@ def og_boot_composer_install():
os.remove(composer_lock_path)
install_swagger_ui() # Instalar Swagger UI
subprocess.call(["sudo", "chown", "-R", "ogboot:ogboot", f"{INSTALL_OPENGNSYS_TARGET}/public"])
subprocess.call(["sudo", "chown", "-R", "ogboot:ogboot", f"{INSTALL_OGBOOT_TARGET}/public"])
logger.info("Application skeleton created and composer.lock file removed.")
@ -694,6 +694,9 @@ def mount_NFS():
subprocess.call(["sudo", "cp", "bin-x86_64-efi/ipxe.efi", f"{INSTALL_OPENGNSYS_TARGET}/tftpboot"])
subprocess.call(["sudo", "chown", "-R", "tftp:ogboot", f"{INSTALL_OPENGNSYS_TARGET}/tftpboot/"])
subprocess.run(["sudo", "chmod", "-R", "775", f"{INSTALL_OPENGNSYS_TARGET}/tftpboot/"])
os.makedirs(f"{INSTALL_OPENGNSYS_TARGET}/tftpboot/ipxe_scripts/templates", exist_ok=True)
subprocess.call(["sudo", "cp", f"{WORKDIR}/ogboot/tftpboot/ipxe_scripts/templates/pxe_default", f"{INSTALL_OPENGNSYS_TARGET}/tftpboot/ipxe_scripts/templates"])
def get_ip_address(interface):
try: