From 78152d31f3a1aff3c862dcd8eb4e88cfa2b295a4 Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Tue, 22 Jul 2014 09:21:26 +0200 Subject: [PATCH] Set $builddir to invocation dir if it is not specified by other means This fixes undefined variable in --tftp handling when novaboot it run as novabot ... -- /dev/null --- novaboot | 2 ++ 1 file changed, 2 insertions(+) diff --git a/novaboot b/novaboot index 4119409..0a88f69 100755 --- a/novaboot +++ b/novaboot @@ -740,6 +740,8 @@ $builddir ||= dirname(File::Spec->rel2abs( ${$scripts[0]}{filename})) if scalar if (defined $builddir) { chdir($builddir) or die "Can't change directory to $builddir: $!"; print "novaboot: Entering directory `$builddir'\n"; +} else { + $builddir = $invocation_dir; } ## File generation phase -- 2.39.2