aboutsummaryrefslogtreecommitdiffstats
path: root/tools/pygrub
Commit message (Collapse)AuthorAgeFilesLines
* pygrub: Detect NetWare PV in pygrubKeir Fraser2009-03-121-0/+12
| | | | Signed-off-by: John Levon <john.levon@sun.com>
* pygrub: Workaround for Solaris CR 1143256.Keir Fraser2009-03-121-1/+5
| | | | | | | | | | The Solaris curses library has a broken timeout() function: after a first timeout() call with a positive value for an argument, subsequent calls will fail to reset it. So, getch() always times out, confusing the pygrub timer in the main loop. Add an extra check to avoid exiting prematurely. Signed-off-by: Frank van der Linden <frank.vanderlinden@sun.com>
* pygrub: Enable domU boot without xen specific argKeir Fraser2009-03-091-2/+2
| | | | | | | | This patch makes domUs bring up without xen specific args to guest kernels. A domU should be bootable without args parameter because tools/examples/xmexample1 doesn't have one. Signed-off-by: INAKOSHI Hiroya <inakoshi.hiroya@jp.fujitsu.com>
* pygrub: parse xen module option in grubKeir Fraser2009-02-201-3/+3
| | | | | | | Add function for GrubConf to parse xen module option in grub. Pygrub should pass args as domUloader did. Signed-off-by: Wei Kong <weikong.cn@gmail.com>
* Use -MMD -MF in tools/* rather than -Wp,-M...Keir Fraser2009-01-121-1/+3
| | | | | | | | | | | | | | | | | | | | | | If you use -MMD -MF then the correct .o filename is written to the .*.d file as the compiler driver arranges everything. This was done in 19010:275abe1c5d24 for the hypervisor. In this patch we do the same elsewhere in the xen-unstable tree, particularly tools/. Specifically: * Change tools/Rules.mk to add -MMD -MF ... to CFLAGS and set DEPS. * Remove -Wp,-MD... from every other Makefile * Remove setting of DEPS from every other Makefile * Ensure that every Makefile says -include $(DEPS) * Ensure that every Makefile's clean target removes $(DEPS) Some Makefiles were already halfway there, but often for a different variable name eg PROG_DEP. The variable name is now standardised in Rules.mk as DEPS. I have done a test build with this change, on Debian etch. Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
* pygrub: fix the parameter `default' and `timeout' in elilo.confKeir Fraser2008-10-031-3/+3
| | | | | | | | | | | | | | | | This patch fixes two issues related to the parameter `default' and `timeout' in elilo.conf: - LiloConf.py cannot interpret the parameter `default' and `timeout'. The first kernel always boot up even if the second kernel is specified by `default'. And `timeout' is ignored. This issue is introduced by cset 15953:70bb28b62ffb. - If two kernels or more are installed, the last kernel cannot boot up even if it is specified by `default'. Signed-off-by: KUWAMURA Shin'ya <kuwa@jp.fujitsu.com>
* PyGRUB: fix menu flickerKeir Fraser2008-08-271-15/+17
| | | | | | | | To avoid flickers, PyGRUB has to avoid spurious ncurses refresh as much as possible, in particular before the complete screen is drawn, and eventually call doupdate last. Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* pygrub: Add 64bit library path to pygrub default search path.Keir Fraser2008-07-301-1/+1
| | | | Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
* Add ZFS libfsimage support patchKeir Fraser2008-05-012-3/+39
| | | | | | | | | Add support to pygrub and libfsimage to boot ZFS root filesystems. Boot argument of zfs-bootfs is set to describe ZFS root pool and boot filesystem object number. Boot argument bootpath is set to describe the virtual device root mirror components. Signed-off-by: Susan Kamm-Worrell <susan.kamm-worrell@sun.com>
* pygrub: cleanup and support for NetBSDKeir Fraser2008-03-261-7/+8
| | | | Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
* Fix pygrub handling of many kernelsKeir Fraser2007-12-271-4/+12
| | | | | | | | If there are a large number of kernel images configured in grub.conf there will be too many to fit in the limited size pygrub display. This patch fixes this so that the list of kernels scrolls as needed. Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* Fix security vulnerability CVE-2007-4993.Keir Fraser2007-09-252-23/+23
| | | | | | | | | Protect pygrub from possible malicious content in guest grub config file. This fixes CVE-2007-4993. Original patch from Jeremy Katz, I updated to close 2 remaining issues pointed out by Christian and Keir, and to use setattr(self, ...). Signed-off-by: Chris Wright <chrisw@sous-sol.org>
* pygrub: LiloConf.py supports root and read-onlykfraser@localhost.localdomain2007-08-061-3/+21
| | | | | | | LiloConf.py ignores the following options: root and read-only. This patch fixes the issue. Signed-off-by: KUWAMURA Shin'ya <kuwa@jp.fujitsu.com>
* [IA64] Presently pygrub only looks in /efi/redhat/elilo.conf. Itkfraser@localhost.localdomain2007-05-031-1/+6
| | | | | | | should check for other distributions, plus a couple fallback locations. Signed-off-by: Aron Griffis <aron@hp.com>
* pygriub: Fix GPT support.kfraser@localhost.localdomain2007-04-131-7/+11
| | | | | | | - 64 bit support for starting of a GPT partition. - detect partition types precisely. Signed-off-by: KUWAMURA Shin'ya <kuwa@jp.fujitsu.com>
* Fix pygrub for IA64 support.kfraser@localhost.localdomain2007-04-112-9/+161
| | | | | Signed-off-by: Shinya Kuwamura <kuwa@jp.fujitsu.com> Signed-off-by: Tomohiro Takahashi <takatom@jp.fujitsu.com>
* pygrub: Support GPT (GUID Partition Table) as used by EFI.kfraser@localhost.localdomain2007-04-111-0/+7
| | | | | Signed-off-by: Shinya Kuwamura <kuwa@jp.fujitsu.com> Signed-off-by: Tomohiro Takahashi <takatom@jp.fujitsu.com>
* Editing long lines in pygrub interactively could lead to tracebacks.Tim Deegan2007-03-281-10/+7
| | | | | | Attached patch fixes things. Signed-off-by: Jeremy Katz <katzj@redhat.com>
* tools: Clean up use of 'install' command.kfraser@localhost.localdomain2007-03-071-2/+2
| | | | | | | | | - convert raw "install" command to use $(INSTALL) - convert some $(INSTALL) to $(INSTALL_DATA) as appropriate - modify the specific $(INSTALL) definitions to use -p. Original patch by Ben Thomas <ben@virtualiron.com> Signed-off-by: Keir Fraser <keir@xensource.com>
* Install pygrub according to auxbin rules.kfraser@localhost.localdomain2007-03-051-1/+2
| | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* Filesystem implementations may need optional arguments in terms ofjohn.levon@sun.com2007-02-191-6/+8
| | | | | | what to mount. Add an options string to the libfsimage API. Signed-off-by: John Levon <john.levon@sun.com>
* [PYGRUB] Invoke pygrub with TERM=vt100Tim Deegan2007-02-011-1/+4
| | | | Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
* pygrub: fsimage binding must free objects with PyObject_DEL, not PyMem_DEL.Keir Fraser2007-01-301-2/+2
| | | | Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* [PYGRUB] Plumb bootloader I/O through xenconsole.Tim Deegan2007-01-221-4/+9
| | | | | | | | | | | | - xend forwards console traffic between the running bootloader and a pty which it writes to the store so the xenconsole client can see it. - the xenconsole client handles the domain's console pty changing. - xm create no longer runs the bootloader. - pygrub gets '-i' option to explicitly request an interactive session. - xend unlocks the domain list during bootloading so that "xm console" can see the domain and attach to its console pty. Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
* [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-092-4/+6
| | | | | | | | 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-099-937/+315
| | | | Signed-off-by: John Levon <john.levon@sun.com>
* 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>