summaryrefslogtreecommitdiff
path: root/tools/pygrub/src
Commit message (Collapse)AuthorAgeFilesLines
...
* [PYGRUB] Don't redraw the interactive menu screen if it doesn't need it.Tim Deegan2007-01-221-8/+12
| | | | Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
* Update pygrub for new Solaris directory names.john.levon@sun.com2007-01-181-3/+3
| | | | Signed-off-by: John Levon <john.levon@sun.com>
* [PYGRUB] Make the boot-choice timeout actually time out.Tim Deegan2007-01-151-0/+3
| | | | Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
* Parse Solaris VTOCs in pygrub.kfraser@localhost.localdomain2007-01-121-14/+47
| | | | Signed-off-by: John Levon <john.levon@sun.com>
* Sniff for Solaris if not specified. This allows Solaris domU's to automaticallyTim Deegan2007-01-091-61/+95
| | | | | | boot correctly without fiddling with domain configs. Signed-off-by: John Levon <john.levon@sun.com>
* Pass in kernel/ramdisk settings to pygrub; if specified, don't try to useTim Deegan2007-01-091-40/+74
| | | | | | | grub.conf; this allows hands-off bootloading in the absence of a grub.conf. It's also useful for specifying temporary changes etc. Signed-off-by: John Levon <john.levon@sun.com>
* pygrub tmp files should live in /var/run/ not /var/lib/, as they arekaf24@localhost.localdomain2006-12-091-2/+4
| | | | | | | | indeed runtime only. Also fix a race condition in making the pygrub fifo. Signed-off-by: John Levon <john.levon@sun.com>
* [PYGRUB] Fix a few bounds violations in pygrub's command-line editor.Tim Deegan2006-11-091-4/+8
| | | | | | | Don't step off the end of the line, or delete characters that aren't there. Signed-off-by: Ryan Harper <ryanh@us.ibm.com> Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
* Use libfsimage for reading filesystem images.Tim Deegan2006-11-098-906/+305
| | | | 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: 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>
* 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>
* 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>
* 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-071-0/+5
| | | | | | | | | 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-023-21/+46
| | | | | | | | | | | | | 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-252-0/+384
| | | | | | | | | | | | | - 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.13 (4270d6c35WpxFmhdkREjmSvk82s-Bg)mjw@wray-m-3.hpl.hp.com2005-04-287-0/+945
Merge Jeremy's pygrub bootloader patch. Signed-off-by: Jeremy Katz <katzj@redhat.com> Signed-off-by: Mike Wray <mike.wray@hp.com>