Skip to contentSkip to conversation

Osstest/Debian: bootloader: Fix grub parsing for XSM and multiboot1

PATCH In review Ian Jackson 2 participants 2 messages May 29, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Osstest/Debian: bootloader: Fix grub parsing for XSM and multiboot1

bca3edb4ac0d670098b7618cbaccf7577aca267a
"Osstest/Debian: bootloader: Understand multiboot2 syntax"
was supposed to change multiboot' and module' in the grub2 menu parser to multiboot2?' and module2?'. But the entry for matching XSM policy file lines was missing the ?, which broke all multiboot1 XSM tests. Fix this.

---
 Osstest/Debian.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Osstest/Debian.pm +1 -1
index 16b47c5..9789ca6 100644
@@ -532,7 +532,7 @@ sub setupboot_grub2 ($$$$) {
             if (m/^\s*module2?\s*(?:\/boot)?\/(initrd\S+)/) {
                 $entry->{Initrd}= $1;
             }
-	    if (m/^\s*module2\s*\/(xenpolicy\S+)/) {
+	    if (m/^\s*module2?\s*\/(xenpolicy\S+)/) {
                 $entry->{Xenpolicy}= $1;
             }
         }
Signature · 7 lines
2.1.4


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
#1 lore raw

Ian Jackson writes ("[OSSTEST PATCH] Osstest/Debian: bootloader: Fix grub parsing for XSM and multiboot1"):

Quoted 9 lines

bca3edb4ac0d670098b7618cbaccf7577aca267a
"Osstest/Debian: bootloader: Understand multiboot2 syntax"
was supposed to change multiboot' and module' in the grub2 menu parser to multiboot2?' and module2?'. But the entry for matching XSM policy file lines was missing the ?, which broke all multiboot1 XSM tests. Fix this.

This was a sufficiently obvious fix, and the damage without this patch sufficiently bad, that I have force pushed it.

So the xen-unstable-smoke tests should start working soon.

There will still be some flights currently in progress which will be affected by this bug, since a running production flight doesn't pick up new osstest code.

Ian.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel