81501c15a5
23686-pygrub-solaris.patch 23697-pygrub-grub2.patch 23944-pygrub-debug.patch 23998-pygrub-GPT.patch 23999-pygrub-grub2.patch 24064-pygrub-HybridISO.patch 24401-pygrub-scrolling.patch 24402-pygrub-edit-fix.patch 24460-pygrub-extlinux.patch 24706-pygrub-extlinux.patch - Revised version of security patch and an additional patch for bnc#764077 x86_64-AMD-erratum-121.patch x86_64-allow-unsafe-adjust.patch - bnc#764077 - VUL-0: EMBARGOED: xen: XSA-9: denial of service on older AMD systems x86_64-AMD-erratum-121.patch - Revised version of security patch for bnc#757537 x86_64-sysret-canonical.patch - bnc#757537 - VUL-0: xen: CVE-2012-0217 PV guest escalation x86_64-sysret-canonical.patch - bnc#757970 - VUL-1: xen: guest denial of service on syscall GPF generation x86_64-trap-bounce-flags.patch OBS-URL: https://build.opensuse.org/package/show/Virtualization/xen?expand=0&rev=190
30 lines
1.3 KiB
Diff
30 lines
1.3 KiB
Diff
# HG changeset patch
|
|
# User Miroslav Rezanina <mrezanin@redhat.com>
|
|
# Date 1323790768 0
|
|
# Node ID 983b551e44077ace454a397181c93533e0a534b5
|
|
# Parent c04ec56f4a6d381bfacd31fbcaefdaa206a914f1
|
|
pygrub: Fix "a" entry editing in grub2
|
|
|
|
When user wants to change entry in grub2 menu in pygrub, there's no
|
|
response in case of appending command line arguments ('a' key).
|
|
|
|
Append malfunction is caused by change of keyword used for kernel
|
|
record. Grub uses 'kernel' for line with linux kernel but grub2 uses
|
|
'linux' instead. This patch adds checking for both grub 1 and 2 keywords.
|
|
|
|
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
|
|
|
|
diff -r c04ec56f4a6d -r 983b551e4407 tools/pygrub/src/pygrub
|
|
--- a/tools/pygrub/src/pygrub Tue Dec 13 15:38:20 2011 +0000
|
|
+++ b/tools/pygrub/src/pygrub Tue Dec 13 15:39:28 2011 +0000
|
|
@@ -522,7 +522,7 @@
|
|
# find the kernel line, edit it and then boot
|
|
img = self.cf.images[self.selected_image]
|
|
for line in img.lines:
|
|
- if line.startswith("kernel"):
|
|
+ if line.startswith("kernel") or line.startswith("linux"):
|
|
l = self.edit_line(line)
|
|
if l is not None:
|
|
img.set_from_line(l, replace = True)
|