diff options
-rwxr-xr-x | installer/opengnsys_installer.sh | 2 | ||||
-rw-r--r-- | server/etc/dhcpd.conf.tmpl | 7 | ||||
-rw-r--r-- | server/tftpboot/grub/grub.cfg | 2 | ||||
-rw-r--r-- | server/tftpboot/grub/templates/21UEFIpxe | 7 |
4 files changed, 16 insertions, 2 deletions
diff --git a/installer/opengnsys_installer.sh b/installer/opengnsys_installer.sh index 254f6ebe..b1dcded3 100755 --- a/installer/opengnsys_installer.sh +++ b/installer/opengnsys_installer.sh @@ -917,8 +917,6 @@ function tftpConfigure() service=$INETDSERV $ENABLESERVICE; $STARTSERVICE - # Creating default UEFI template file. - echo 'source "$prefix/$net_default_mac"' > $TFTPCFGDIR/grub/grub.cfg # comprobamos el servicio tftp sleep 1 testPxe diff --git a/server/etc/dhcpd.conf.tmpl b/server/etc/dhcpd.conf.tmpl index a80b42db..afe8d58c 100644 --- a/server/etc/dhcpd.conf.tmpl +++ b/server/etc/dhcpd.conf.tmpl @@ -1,4 +1,5 @@ ddns-update-style none; +option arch code 93 = unsigned integer 16; option domain-name "example.org"; log-facility local7; not-authoritative; @@ -11,6 +12,12 @@ subnet NETIP netmask NETMASK { max-lease-time 7200; next-server SERVERIP; filename "grldr"; + # 0007 == x64 EFI boot + if option arch = 00:07 { + filename "grubnetx64.efi.signed"; + } else { + filename "grldr"; + } use-host-decl-names on; # Ejemplo para PC. diff --git a/server/tftpboot/grub/grub.cfg b/server/tftpboot/grub/grub.cfg new file mode 100644 index 00000000..53db4d84 --- /dev/null +++ b/server/tftpboot/grub/grub.cfg @@ -0,0 +1,2 @@ +source "$prefix/$net_default_mac" + diff --git a/server/tftpboot/grub/templates/21UEFIpxe b/server/tftpboot/grub/templates/21UEFIpxe new file mode 100644 index 00000000..7892a495 --- /dev/null +++ b/server/tftpboot/grub/templates/21UEFIpxe @@ -0,0 +1,7 @@ +##NO-TOCAR-ESTA-LINEA UEFI-pxe +set ISODIR=ogLive +linux (tftp)/$ISODIR/ogvmlinuz ro boot=oginit quiet splash vga=788 irqpoll acpi=on og2nd=sqfs ogprotocol=smb ogactiveadmin=false ogdebug=false ogtmpfs=15 oglivedir=$ISODIR INFOHOST +initrd (tftp)/$OGLIVE/oginitrd.img +boot + + |