]> xenbits.xensource.com Git - people/royger/osstest.git/commitdiff
Osstest/Debian: bootloader: Ignore `.config' files
authorIan Jackson <ian.jackson@eu.citrix.com>
Fri, 18 May 2018 15:38:31 +0000 (16:38 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Wed, 23 May 2018 16:13:28 +0000 (17:13 +0100)
Some versions of the bootloader scripts will make menu entries for
`.config' files, containing the hypervisor config.  These should be
ignored.

(It is not clear to me, given our 20_linux_xen hack, whether this is
in fact an upstream bug, or a bug in 20_linux_xen.)

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Osstest/Debian.pm

index 019893db889c6c09c9a05728c3f0e7dcae4f4c7b..97d451fc106cf5cda8fc52b1a1feac467d55fa39 100644 (file)
@@ -476,6 +476,9 @@ sub setupboot_grub2 ($$$$) {
                } elsif ($entry->{Hv} =~ m/xen-syms/) {
                    logm("(skipping entry at $entry->{StartLine}..$.;".
                         " is xen-syms)");
+               } elsif ($entry->{Hv} =~ m/\.config$/) {
+                   logm("(skipping entry at $entry->{StartLine}..$.;".
+                        " is .config)");
                } elsif (defined $want_kernver &&
                         $entry->{KernVer} ne $want_kernver) {
                    logm("(skipping entry at $entry->{StartLine}..$.;".