|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [OSSTEST PATCH v2 15/23] Osstest/Debian: bootloader: Understand multiboot2 syntax
We are going to sometimes switch to the multiboot2 protocol, which has
different directives with very similar effect.
Signed-off-by: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
---
Osstest/Debian.pm | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/Osstest/Debian.pm b/Osstest/Debian.pm
index 97d451f..0185761 100644
--- a/Osstest/Debian.pm
+++ b/Osstest/Debian.pm
@@ -512,27 +512,27 @@ sub setupboot_grub2 ($$$$) {
$entry->{Hv}= $1;
$entry->{Chainload} = 1;
}
- if (m/^\s*multiboot\s*(?:\/boot)?\/(xen\-[0-9][-+.0-9a-z]*\S+)/) {
+ if (m/^\s*multiboot2?\s*(?:\/boot)?\/(xen\-[0-9][-+.0-9a-z]*\S+)/)
{
die unless $entry;
$entry->{Hv}= $1;
$entry->{Chainload} = 0;
}
- if (m/^\s*multiboot\s*(?:\/boot)?\/(vmlinu[xz]-(\S+))\s+(.*)/) {
+ if (m/^\s*multiboot2?\s*(?:\/boot)?\/(vmlinu[xz]-(\S+))\s+(.*)/) {
die unless $entry;
$entry->{KernOnly}= $1;
$entry->{KernVer}= $2;
$entry->{KernOpts}= $3;
}
- if (m/^\s*module\s*(?:\/boot)?\/(vmlinu[xz]-(\S+))\s+(.*)/) {
+ if (m/^\s*module2?\s*(?:\/boot)?\/(vmlinu[xz]-(\S+))\s+(.*)/) {
die unless $entry;
$entry->{KernDom0}= $1;
$entry->{KernVer}= $2;
$entry->{KernOpts}= $3;
}
- if (m/^\s*module\s*(?:\/boot)?\/(initrd\S+)/) {
+ if (m/^\s*module2?\s*(?:\/boot)?\/(initrd\S+)/) {
$entry->{Initrd}= $1;
}
- if (m/^\s*module\s*\/(xenpolicy\S+)/) {
+ if (m/^\s*module2\s*\/(xenpolicy\S+)/) {
$entry->{Xenpolicy}= $1;
}
}
--
2.1.4
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |