From 60c474690630b0e08d7590bb7b8d4c4d95aad509 Mon Sep 17 00:00:00 2001 From: lgromero Date: Thu, 5 Jun 2025 09:44:00 +0200 Subject: [PATCH] adds new template disk and grub.cfg --- tftpboot/grub.cfg | 19 +++++++++++++++++++ tftpboot/menu.lst/templateDisk | 1 + 2 files changed, 20 insertions(+) create mode 100644 tftpboot/grub.cfg create mode 100644 tftpboot/menu.lst/templateDisk diff --git a/tftpboot/grub.cfg b/tftpboot/grub.cfg new file mode 100644 index 0000000..0ce424c --- /dev/null +++ b/tftpboot/grub.cfg @@ -0,0 +1,19 @@ +cat grub.cfg +##NO-TOCAR-ESTA-LINEA ogLive +set timeout=0 +set timeout_style=hidden + +echo ">>> GRUB lanzador detectando MAC..." +sleep 1 + +echo ">>> MAC detectada: ${net_default_mac}" +sleep 1 + +echo ">>> Intentando cargar menĂș especĂ­fico: /menu.lst/01-${net_default_mac}" +sleep 1 + +configfile /menu.lst/01-${net_default_mac} + +echo ">>> No se pudo cargar /menu.lst/01-${net_default_mac}" +sleep 5 +reboot diff --git a/tftpboot/menu.lst/templateDisk b/tftpboot/menu.lst/templateDisk new file mode 100644 index 0000000..4ce7f86 --- /dev/null +++ b/tftpboot/menu.lst/templateDisk @@ -0,0 +1 @@ +configfile __DISKPART__/efi/Part-__DISK__-__PART__/Boot/grub.cfg \ No newline at end of file