[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH OSSTEST] Debian: Supply a defined default for firmware hostprop when checking for uefi



Otherwise:
Use of uninitialized value in string eq at Osstest/Debian.pm line 410.

Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
---
 Osstest/Debian.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Osstest/Debian.pm b/Osstest/Debian.pm
index bd482d6..5b26c4f 100644
--- a/Osstest/Debian.pm
+++ b/Osstest/Debian.pm
@@ -408,7 +408,7 @@ sub setupboot_grub2 ($$$$) {
 
     # Grub2 on Jessie/arm* doesn't do multiboot, so we must chainload.
     my $need_uefi_chainload =
-        get_host_property($ho, "firmware") eq "uefi" &&
+        get_host_property($ho, "firmware", "") eq "uefi" &&
         $ho->{Suite} =~ m/jessie/ && $r{arch} =~ m/^arm/;
 
     my $parsemenu= sub {
-- 
2.5.3


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.