$c{TftpPath} ||= "/tftpboot/";
$c{TftpPxeDir} ||= "pxelinux.cfg/";
$c{TftpPxeTemplates} ||= '%ipaddrhex% 01-%etherhyph%';
+ $c{TftpNetGrubDir} ||= "Netgub.cfg/";
+ $c{TftpNetGrubTemplates} ||= '%ether%';
$c{TftpPlayDir} ||= "$c{Username}/osstest/";
$c{TftpTmpDir} ||= "$c{TftpPlayDir}tmp/";
$ho->{Tftp} = { };
$ho->{Tftp}{$_} = $c{"Tftp${_}_${tftpscope}"} || $c{"Tftp${_}"}
foreach qw(Path TmpDir PxeDir PxeGroup PxeTemplates PxeTemplatesReal
- DiBase GrubBase);
+ DiBase GrubBase
+ NetGrubDir NetGrubTemplates NetGrubTemplatesReal);
#----- finalise -----
# in array context, returns (dir, pathtail)
# where dir does not depend on $templatekeytail
my %v = %r;
- my $templatekeybase = 'Pxe';
+ my $firmware = get_host_property($ho, "firmware", "bios");
+ my $templatekeybase = $firmware eq 'uefi' ? 'NetGrub' : 'Pxe';
$templatekeytail //= 'Templates';
my $templatekey = $templatekeybase.$templatekeytail;
my $templates = $ho->{Tftp}{$templatekey};
TftpPxeDir The path under `Path' to the PXE configuration directory
(e.g. pxelinux.cfg/). Include the trailing /.
- TftpPxeGroup The Unix group which should own files under `PxeDir'.
- TftpPxeTemplates See TftpPxeTemplates
- TftpPxeTemplatesReal
+ TftpNetGrubDir The path under `Path' to the grub EFI netboot directory
+ Include the trailing /.
+
+ TftpPxeGroup The Unix group which should own files under `PxeDir'
+ and NetGrubDir.
+
+ TftpPxeTemplates } See below
+ TftpPxeTemplatesReal }
+ TftpNetGrubTemplates }
+ TftpNetGrubTemplatesReal }
TftpDiBase The path under `Path' to the root of the debian
installer images.
TftpGrubBase The path under `Path' to the root of the grub
- EFI netboot images.
+ EFI netboot (`netgrub') images.
Tftp<setting>_<scope>
Tftp<setting>_default is not defined.
TftpPxeTemplates
+TftpNetGrubTemplates
List (space-separated) of template filenames for writing
The templates contain variable substitutions %var%
The variables are the runvars plus
Templates containing references to unknown %var%s - particularly,
the host mac address when not known, or the guest's dynamic
ip address - are skipped. The first template all of whose ingredients
- are known is used, with TftpPath and TftpPxeDir prepended.
+ are known is used, with TftpPath and TftpPxeDir or TftpNetGrubDir
+ prepended.
TftpPxeTemplatesReal
+TftpNetGrubTemplatesReal
Template filename which mg-hosts mknetbootdir should make be a
- symlink to the TftpPxeTemplates. Not used otherwise.
+ symlink to the TftpPxeTemplates or TftpNetGrubTemplates. Not used
+ otherwise.
Timezone
Olson TZ name, used by host and guest installers
TftpPxeDir /
TftpPxeTemplates %name%/pxelinux.cfg
TftpPxeTemplatesReal pxelinux.cfg/%ipaddrhex%
+TftpNetGrubDir /
+TftpNetGrubTemplates %name%/netgrub.cfg
+TftpNetGrubTemplatesReal Netgrub.cfg/%ether%
TftpPxeGroup osstest
# Update with ./mg-debian-installer-update(-all)