[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [OSSTEST PATCH 22/36] setupboot_grub2: Parse arm64 uefi grub verbes
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@xxxxxxxxxx> --- Osstest/Debian.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Osstest/Debian.pm b/Osstest/Debian.pm index 57f31977..4f07cdef 100644 --- a/Osstest/Debian.pm +++ b/Osstest/Debian.pm @@ -541,7 +541,7 @@ sub setupboot_grub2 ($$$$) { $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; @@ -553,16 +553,16 @@ sub setupboot_grub2 ($$$$) { $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; } } -- Anthony PERARD
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |