summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rw-r--r--server/etc/dhcpd.conf.tmpl7
-rw-r--r--server/tftpboot/grub/grub.cfg2
-rw-r--r--server/tftpboot/grub/templates/21UEFIpxe7
3 files changed, 16 insertions, 0 deletions
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
+
+