diff options
author | ramon <ramongomez@us.es> | 2018-04-19 11:41:58 +0000 |
---|---|---|
committer | ramon <ramongomez@us.es> | 2018-04-19 11:41:58 +0000 |
commit | 2c5a875a5ffd6c3fec3441a6e865e5df02f769c2 (patch) | |
tree | c3e4a3c2cd2f8e042165ad7880a114619adb7c14 | |
parent | 2cce651a4b4dc87fbd120e44cfbc13f4322ccde7 (diff) |
#802: Adaptar plantilla DHCP y preparar primera plantilla PXE para sistemas UEFI.
git-svn-id: https://opengnsys.es/svn/branches/version1.1@5735 a21b9725-9963-47de-94b9-378ad31fedc9
-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 + + |