20_linux_xen now uses "xen_hypervisor" and "xen_module" in place of
"multiboot2?" and "module2?" when generating a config file for
arm64-uefi.
Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
$entry->{Hv}= $1;
$entry->{Chainload} = 1;
}
- if (m/^\s*multiboot2?\s+(?:\/boot)?\/(xen\-[0-9][-+.0-9a-z]*\S+)\s+(.*)/) {
+ if (m/^\s*(?:multiboot2?|xen_hypervisor)\s+(?:\/boot)?\/(xen\-[0-9][-+.0-9a-z]*\S+)\s+(.*)/) {
die unless $entry;
$entry->{Hv}= $1;
$entry->{Chainload} = 0;
$entry->{KernVer}= $2;
$entry->{KernOpts}= $3;
}
- if (m/^\s*module2?\s*(?:\/boot)?\/(vmlinu[xz]-(\S+))\s+(.*)/) {
+ if (m/^\s*(?:module2?|xen_module)\s*(?:\/boot)?\/(vmlinu[xz]-(\S+))\s+(.*)/) {
die unless $entry;
$entry->{KernDom0}= $1;
$entry->{KernVer}= $2;
$entry->{KernOpts}= $3;
}
- if (m/^\s*module2?\s+(?:--nounzip\s+)*(?:\/boot)?\/(initrd\S+)/) {
+ if (m/^\s*(?:module2?|xen_module)\s+(?:--nounzip\s+)*(?:\/boot)?\/(initrd\S+)/) {
$entry->{Initrd}= $1;
}
- if (m/^\s*module2?\s*\/(xenpolicy\S+)/) {
+ if (m/^\s*(?:module2?|xen_module)\s*\/(xenpolicy\S+)/) {
$entry->{Xenpolicy}= $1;
}
}