Bug 766483 - can't edit kernel arguments in pygrub while using grub2
Summary: can't edit kernel arguments in pygrub while using grub2
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: xen
Version: 5.8
Hardware: Unspecified
OS: Unspecified
Target Milestone: rc
: ---
Assignee: Xen Maintainance List
QA Contact: Virtualization Bugs
Depends On:
Blocks: 807971
TreeView+ depends on / blocked
Reported: 2011-12-12 06:57 UTC by Qixiang Wan
Modified: 2013-01-08 04:07 UTC (History)
6 users (show)

Fixed In Version: xen-3.0.3-139.el5
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2013-01-08 04:07:28 UTC
Target Upstream Version:

Attachments (Terms of Use)

System ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2013:0119 normal SHIPPED_LIVE xen bug fix and enhancement update 2013-01-08 08:38:40 UTC

Description Qixiang Wan 2011-12-12 06:57:07 UTC
Description of problem:
The edit key "e" and "a" in grub doesn't work while using pygrub + grub2.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Install a Fedora 16 PV guest (using GPT or msdos partition )
2. boot up the guest and connect to the console
   # xm create -c fedora
3. press "e" or "a" in pygrub to modify the kernel arguments
Actual results:

# xm creat -c fedora
Using config file "./fedora".
Using <class 'grub.GrubConf.Grub2ConfigFile'> to parse /grub2/grub.cfg
WARNING:root:Unknown image directive load_video
WARNING:root:Unknown directive source
Traceback (most recent call last):
  File "/usr/bin/pygrub", line 714, in ?
    chosencfg = run_grub(file, entry, fs)
  File "/usr/bin/pygrub", line 565, in run_grub
  File "/usr/lib64/python2.4/curses/wrapper.py", line 44, in wrapper
    return func(stdscr, *args, **kwds)
  File "/usr/bin/pygrub", line 561, in run_main
    sel = g.run()
  File "/usr/bin/pygrub", line 436, in run
  File "/usr/bin/pygrub", line 505, in run_main
  File "/usr/bin/pygrub", line 298, in edit_entry
    self.entry_win.addstr(idx, 2, l, attr)
_curses.error: addstr() returned ERR
No handlers could be found for logger "xend"
Error: Boot loader didn't return any data!
Usage: xm create <ConfigFile> [options] [vars]

Expected results:
The "e" and "a" keys should work in pygrub

Additional info:
1. This defect happen with both gpt and msdos partition.
2. No problem for just booting up the fedora 16 pv guest with pygrub

Comment 4 RHEL Program Management 2012-04-02 10:17:07 UTC
This request was evaluated by Red Hat Product Management for inclusion
in a Red Hat Enterprise Linux release.  Product Management has
requested further review of this request by Red Hat Engineering, for
potential inclusion in a Red Hat Enterprise Linux release for currently
deployed products.  This request is not yet committed for inclusion in
a release.

Comment 5 Miroslav Rezanina 2012-04-16 13:18:18 UTC
Fix built into xen-3.0.3-139.el5

Comment 8 Qin Guan 2012-09-26 08:24:34 UTC
Verified this problem with xen-3.0.3-141.el5(reproduced with xen-3.0.3-135 first).

 fedora16: 3.1.0-7.fc16.x86_64

As the problem description.

There is no Traceback when type "e" or "a" in pygrub to modify the kernel arguments.

Comment 10 errata-xmlrpc 2013-01-08 04:07:28 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.


Note You need to log in before you can comment on or make changes to this bug.