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@eu.citrix.com>
$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;
}
}