aboutsummaryrefslogtreecommitdiffstats
path: root/tools/pygrub
Commit message (Collapse)AuthorAgeFilesLines
...
* Dynamically link to libgcc on Solaris. Also clean up duplicate -Wall flags.kfraser@localhost.localdomain2006-11-021-1/+1
| | | | Signed-off-by: John Levon <john.levon@sun.com>
* Use $CC when building pygrub.kaf24@localhost.localdomain2006-10-221-3/+3
| | | | Signed-off-by: John Levon <john.levon@sun.com>
* [PYGRUB] Enable showing the cursor in pygrub when it's relevant to do so.kfraser@localhost.localdomain2006-09-291-5/+15
| | | | Signed-off-by: Jeremy Katz <katzj@redhat.com>
* Pygrub: add /var/lib/xen to the install tree.Tim Deegan2006-09-211-0/+2
| | | | | (Pygrub uses /var/lib/xen to store fifos and image files.) Signed-off-by: Tim Deegan <tim.deegan@xensource.com>
* Pygrub: stop the FS identification code from leaking open fds.Tim Deegan2006-09-212-1/+2
| | | | Signed-off-by: Tim Deegan <tim.deegn@xensource.com>
* [PYGRUB] Flesh out some of pygrub's functionality as was originallykaf24@firebug.cl.cam.ac.uk2006-08-082-176/+427
| | | | | | | | | | | | intended. Changes include: * Addition of basic command line mode much like grub's so that you can boot things without having them specified in the config file * Edit/append mode for modifying kernel command lines, etc * Fix handling of case where the grub config didn't have a default specified Signed-off-by: Jeremy Katz <katzj@redhat.com>
* [PYGRUB] Typo fix in pygrub READMEatse@norwich.uk.xensource.com2006-07-141-1/+1
| | | | | | Signed-off-by: Alastair Tse <atse@xensource.com>
* Fix python installation on sles10. Install prefix is beingkaf24@firebug.cl.cam.ac.uk2006-04-211-1/+1
| | | | | | | | passed along for some reason, so we explicitly redefine it to nothing. Signed-off-by: Ryan Grimm <grimm@us.ibm.com>
* build: Clean up use of .PHONYkaf24@firebug.cl.cam.ac.uk2006-04-102-1/+8
|\ | | | | | | | | | | | | | | | | | | | | | | * Move .PHONY directives next to targets, this makes them a lot harder to miss * Add missing .PHONY directives * Remove nonexistent .PHONY directives * Hopefully I didn'T miss anything... Signed-Off-By: Horms <horms@verge.net.au>
| * Initialise offsetopt when offset == 0. Closes bug #599.emellor@leeni.uk.xensource.com2006-04-101-1/+4
| | | | | | | | | | | | | | Report and diagnosis by Robert Hendrickx <robert.hendrickx@advalvas.be>. Signed-off-by: Ewan Mellor <ewan@xensource.com>
* | build: Clean pygrub's a.outkaf24@firebug.cl.cam.ac.uk2006-04-101-1/+1
|/ | | | | | Signed-Off-By: Magnus Damm <magnus@valinux.co.jp> Signed-Off-By: Horms <horms@valinux.co.jp>
* Improve pygrub error reporting when opening ext2 fs is not possiblemip@xencore04.1virtual.net2006-04-031-2/+9
| | | | | | | | | | | | | | | As reported in the thread: http://lists.xensource.com/archives/html/xen-users/2006-03/msg00721.html, pygrub does not open ext2 file systems in partitioned images or sub partitions on e.g. CentOS/RHEL 4, because e2fsprogs ext2fs_open does not support an offset into the file to be opened. With this patch, the error is correctly reported instead of a generic "unable to open file" (and leaving the user searching in the dark). Signed-off-by: Michael Paesold <mpaesold@gmx.at>
* pygrub currently takes a file on the command line to mean a config filekaf24@firebug.cl.cam.ac.uk2006-02-261-6/+14
| | | | | | | | | | if it can't figure out partitions and filesystems. This then makes it balloon to absurd sizes. Make this only happen if you pass a debugging flag Signed-off-by: Jeremy Katz <katzj@redhat.com>
* Fix pygrub to handle timeout of -1 (wait forever).john.levon@sun.com2006-02-071-4/+6
| | | | | | | | Only call use_default_colors() if it's available. Signed-off-by: John Levon <john.levon@sun.com>
* Fix some more bugs in pygrub including:kaf24@firebug.cl.cam.ac.uk2005-11-101-9/+11
| | | | | | | | | | a) a couple of variables were referenced wrong b) fix using arrow keys in the menu to act correctly c) and look for grub config properly for /boot partition Signed-off-by: Jeremy Katz <katzj@redhat.com>
* Attached patch fixes a thinko in pygrub's setup.pykaf24@firebug.cl.cam.ac.uk2005-11-101-2/+3
| | | | | | Signed-off-by: Jeremy Katz <katzj@redhat.com>
* Two patches were applied to pygrub's setup.py to work around python2.2kaf24@firebug.cl.cam.ac.uk2005-10-221-8/+5
| | | | | | | | limitations and only one is needed. Revert one of them. Signed-Off-By: Muli Ben-Yehuda <mulix@mulix.org>
* Tweak to pygrub build config detection.kaf24@firebug.cl.cam.ac.uk2005-10-211-1/+1
| | | | | Signed-off-by: Jeremy Katz <katzj@redhat.com>
* pygrub's setup.py relies on distutils.UnixCCompiler.has_function(),kaf24@firebug.cl.cam.ac.uk2005-10-191-5/+8
| | | | | | | | | | | | | | | | | | | | which does not exist with python2.2, causing the following build error: make[2]: Entering directory `/home/muli/xen/x86.hg/tools/pygrub' CFLAGS=" -m32 -march=i686" python setup.py build Traceback (most recent call last): File "setup.py", line 15, in ? if cc.has_function("ext2fs_open2"): AttributeError: UnixCCompiler instance has no attribute 'has_function' The following patch gets it to build, but is pretty ugly. A proper fix would be to do the check for ext2fs_open2() in a way that is backward compatible with python2.2. Signed-Off-By: Muli Ben-Yehuda <mulix@mulix.org>
* Better cast for ptr->int in residerfs module.kaf24@firebug.cl.cam.ac.uk2005-10-121-1/+1
| | | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* Fix 64-bit compile of pygrub. From Charles Duffy.kaf24@firebug.cl.cam.ac.uk2005-10-111-1/+1
|
* Re-enable the pygrub build and fix the build with olderkaf24@firebug.cl.cam.ac.uk2005-10-073-1/+18
| | | | | | | | | e2fsprogs (tested on RHEL4 with e2fsprogs-1.35 and rawhide with e2fsprogs-1.38) Signed-off-by: Jeremy Katz <katzj@redhat.com>
* Disable build of pygrub for now - does not build with e2fsprogs-1.35smh22@firebug.cl.cam.ac.uk2005-08-021-2/+2
| | | | | | Signed-off-by: Steven Hand <steven@xensource.com>
* Fix typo in pygrub codesmh22@firebug.cl.cam.ac.uk2005-08-021-2/+2
|
* The attached patch adds the support that was only stubbed in to be ablesmh22@firebug.cl.cam.ac.uk2005-08-024-22/+47
| | | | | | | | | | | | | to support having reading the boot loader config when you're using a whole disk (eg, file:/root/disk.img,xvda,w) as opposed to just a partition. This reads the partition table in the MBR to find the active partition and then passes that offset down into the filesystem reading code. Signed-off-by: Jeremy Katz <katzj@redhat.com>
* bitkeeper revision 1.1560 (4294fb66-WHHJCdXRRXp-4dTrGuiLw)kaf24@firebug.cl.cam.ac.uk2005-05-251-1/+1
| | | | | Trivial fix to email contact address.
* bitkeeper revision 1.1559 (4294fab4CMjRyJfuEBP1lUbAC6G9GA)kaf24@firebug.cl.cam.ac.uk2005-05-254-10/+420
| | | | | | | | | | | | | - pygrub/README provides information on packages needed to compile pygrub - support reiserfs {2,3} filesystem - dynamically build modules based on which filesystem libraries the system has (proposed by Jeremy) - pump up pygrub to version 0.2 Signed-off-by: Jeremy Katz <katzj@redhat.com> Signed-off-by: Nguyen Anh Quynh <aquynh@gmail.com>
* bitkeeper revision 1.1422 (4288fba11spwpuVeAcBTXmV1qAve_Q)kaf24@firebug.cl.cam.ac.uk2005-05-161-1/+1
| | | | | | Fix 64-bit build of pygrub. From Jerone Young. Signed-off-by: Keir Fraser <keir@xensource.com>
* bitkeeper revision 1.1392 (4270eaf9Zx1D03KOAVKHY8tW-aANmg)mjw@wray-m-3.hpl.hp.com2005-04-283-12/+56
| | | | | | | | | | | | | | | | | Apply Nguyen's patch: - extend filesystem abstraction by adding file_exist() method. this method is used to check for existent of a file given its name. now ext2fs implements this method. - pygrub opens and parses /boot/grub/menu.lst or /boot/grub/grub.conf, in that order. - add /usr/lib/python to system path (see pygrub). without this change, pygrub cannot find grub python package. - remove few blank lines Signed-off-by: Nguyen Anh Quynh <aquynh@gmail.com> Signed-off-by: Mike Wray <mike.wray@hp.com>
* bitkeeper revision 1.1327.2.14 (4270deecYzS6oo19lfqUxQRTnp2SBw)mjw@wray-m-3.hpl.hp.com2005-04-281-0/+1
| | | | | | | | Document that you need RPM e2fsprogs-devel installed to compile pygrub. Signed-off-by: Mike Wray <mike.wray@hp.com>
* bitkeeper revision 1.1327.2.13 (4270d6c35WpxFmhdkREjmSvk82s-Bg)mjw@wray-m-3.hpl.hp.com2005-04-289-0/+988
Merge Jeremy's pygrub bootloader patch. Signed-off-by: Jeremy Katz <katzj@redhat.com> Signed-off-by: Mike Wray <mike.wray@hp.com>