@@ -2453,10 +2453,10 @@ sub setup_grub_efi_bootcfg ($$) {
my $f = "grub.cfg-$ho->{Ether}";
my $grub= $ho->{Tftp}{Path}.'/'.$ho->{Tftp}{GrubBase}.'/'.
$c{TftpGrubVersion}."/pxegrub-$r{arch}.efi";
- my $pxe=$ho->{Tftp}{Path}.'/'.hostnamepath($ho).'/pxe.img';
+ my $img=$ho->{Tftp}{Path}.'/'.hostnamepath($ho).'/pxe.img';
- logm("Copy $grub => $pxe");
- copy($grub, $pxe) or die "Copy $grub to $pxe failed: $!";
+ logm("Copy $grub => $img");
+ copy($grub, $img) or die "Copy $grub to $img failed: $!";
logm("grub_efi bootcfg into $f");
file_link_contents("$ho->{Tftp}{Path}$ho->{Tftp}{TmpDir}$f",
@@ -118,10 +118,10 @@ sub cmd_mkpxedir () {
my $sudo = $ENV{'OSSTEST_SUDO'} // 'sudo';
foreach my $hn (@ARGV) {
my $ho= selecthost("host=$hn");
- my ($dir, $pxefile) = host_netboot_file($ho);
- my ($rdir, $pxerealfile) = host_netboot_file($ho, 'TemplatesReal');
- $pxerealfile //= $pxefile;
- my $dirname = dirname $pxefile;
+ my ($dir, $file) = host_netboot_file($ho);
+ my ($rdir, $realfile) = host_netboot_file($ho, 'TemplatesReal');
+ $realfile //= $file;
+ my $dirname = dirname $file;
my $cmd = <<END;
set -e
cd $dir
@@ -133,10 +133,10 @@ END
$sudo chown root.$ho->{Tftp}{PxeGroup} $dirname
$sudo chmod 2775 $dirname
END
- if ($pxefile ne $pxerealfile) {
- my $subdirs = "../" x $pxefile =~ m#/#;
+ if ($file ne $realfile) {
+ my $subdirs = "../" x $file =~ m#/#;
$cmd .= <<END;
- $sudo ln -sf $subdirs$pxefile $pxerealfile
+ $sudo ln -sf $subdirs$file $realfile
END
}
print $cmd;
No functional change. Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com> --- Osstest/TestSupport.pm | 6 +++--- mg-hosts | 14 +++++++------- 2 files changed, 10 insertions(+), 10 deletions(-)