summaryrefslogtreecommitdiffstats
path: root/bootloader.py
Commit message (Collapse)AuthorAgeFilesLines
* This is the only place isEfiSystemPartition is used, so pull it in.Chris Lumens2009-04-061-5/+13
|
* Try to handle devices which live in a subdir of /dev properlyHans de Goede2009-04-061-1/+2
| | | | | | This hopefully fixes cciss (will test once an anaconda with this in has hit rawhide, so I can use rhts to test). This is the second version of this patch, this time it also does the / -> ! translation for sysfs names.
* Fix the import of checkbootloader (#491574).Chris Lumens2009-03-231-2/+1
|
* Fix writing the default= line in grub.conf (#490756).Chris Lumens2009-03-191-5/+6
| | | | | This was caused by trying to compare an instance of an object with a string, which of course is never going to work.
* Fix booty for dmraidHans de Goede2009-03-091-2/+2
| | | | | | Booty was expecting the xxxxxxx part of /dev/xxxxxx paths instead of new storage device names, this patch fixes this, making booty work on dmraid with the new storage code.
* bootloader.write takes fewer arguments now, so clean up arg passing.Chris Lumens2009-03-041-4/+2
|
* Move BootyNoKernelWarning into __init__.py and use it.Chris Lumens2009-03-041-1/+1
| | | | | Also, this gets rid of the goofy self.noKernelsWarn method which doesn't serve any useful purpose now that booty's part of anaconda.
* Use booty.getBootloader instead of going through an intermediary.Chris Lumens2009-03-041-4/+0
|
* Fix some booty import errors.Chris Lumens2009-03-041-1/+1
|
* Look for rootDevice in the right place.Chris Lumens2009-03-041-1/+1
|
* Fix up calls to bootloaderChoices to refer to the platform module now.Chris Lumens2009-02-271-1/+1
|
* Lots of minor fixes and cleanups. A non-exhaustive list follows.David Lehman2009-02-271-1/+0
| | | | | | | | | | | - Change minsize/maxsize to minSize/maxSize since that's the convention elsewhere throughout the code. - Redirect output from all external utilities to tty5, not /dev/null. - Don't waste calls to basename for debug log statements, especially when the device can be None. - Add lots of missing imports. - Fix lots of remnants of previous code usage.
* Updates to make existing code use the new storage module.David Lehman2009-02-231-33/+18
|
* Use parted.Disk.getPartitionByPath()David Cantrell2009-02-121-9/+0
| | | | | | Removed the parted.getPartitionByName() function. There is now a method on parted.Disk called getPartitionByPath() which provides the same functionality, but only works on a single Disk.
* Iterate over partitions using disk.partitionsDavid Cantrell2009-02-121-2/+2
| | | | | | | Rather than calling disk.nextPartition() over and over, we can get a hash table of all partitions on a disk via disk.partitions. Iterate over the values() of this hash (the keys correspond to the partition number).
* Use device property on Disk and Geometry objects.David Cantrell2009-02-121-4/+4
| | | | | The property name for Device objects on a Disk or Geometry is 'device', not 'dev'.
* Syntax changes for the new pyparted.David Cantrell2009-02-121-9/+5
| | | | | | | | | | | | | | | 1) Iterate over partitions with a for loop over disk.partitions.values() rather than calling next_partition() 2) Call getFlag() rather than get_flag() 3) Call setFlag() to enable a flag, call unsetFlag() to disable a flag. 4) Reference the active property rather than calling the is_active() method. And other fixes.
* Don't use the native_type flag anymore.Chris Lumens2009-02-121-1/+1
| | | | | | | In the old pyparted, this flag was marked with all sorts of warnings about how it would go away once certain constants were supported. We now support all the constants libparted exposes, so we don't need to keep ancient hacks around anymore.
* Removed partedUtils.get_partition_by_name()David Cantrell2009-02-121-2/+1
| | | | Now provided by pyparted as parted.getPartitionByName()
* Removed partedUtils.get_partition_name()David Cantrell2009-02-121-2/+2
| | | | Now provided by parted.Partition.getDeviceNodeName()
* Removed sector<->cylinder conversion functions.David Cantrell2009-02-121-2/+1
| | | | | The parted.Device object now offers functions to translate between cylinders and sectors.
* mdraid1: default to putting grub on partition instead of mbr (#217176)Hans de Goede2008-12-111-1/+2
| | | | | | | | | | | | As previously discussed we do want to allow installing the bootloader on the MBR in the raid 1 case (which until some time ago we did not allow) (#217176), but we do not want to change our current default of installing to the partition (which gives us the mirror redundancy, due to special handling in booty). This patch effectively reverts commit 48d582347492493c87b2b368394fd8e7342688bc, which removed the raid1 case special handling, and then adds mbr support to the raid special case in fsset.py, and add some special case handling to bootloader.py to not default to the mbr in this case.
* bootloader: remove old kernel-xen-{guest, hypervisor} handlingMark McLoughlin2008-08-081-3/+1
| | | | Signed-off-by: Mark McLoughlin <markmc@redhat.com>
* Remove old livecd flagJeremy Katz2008-06-301-9/+2
| | | | | | The livecd flag was for "I'm building a livecd", ie with kadischi, not for doing a livecd install. Keeping the old flag around was just confusing, especially as kadischi is no longer used/maintained
* 2008-06-04 Ján ONDREJ <ondrejj@salstar.sk> (via ondrejj@fedoraproject.org)Ján ONDREJ2008-06-041-2/+2
| | | | * po/sk.po: Typo fix.
* Add EFI handling to the bootloader setup choices.Peter Jones2008-03-141-0/+20
|
* Don't allow backing up to partitioning (#429618).Chris Lumens2008-01-221-2/+11
|
* Clean up typos and other things for GPLv2+ changes.David Cantrell2007-12-171-2/+2
| | | | | | | Shorten 'Red Hat Author(s)' to just 'Author(s)'. Perhaps eventually we'll get an AUTHORS file and will just remove author names from the individual files. Also fixed a type in scripts/dumphdrlist.py where Author was listed twice.
* Common GPLv2+ boilerplate on toplevel python source files.David Cantrell2007-12-171-7/+14
| | | | | | Updated all *.py files to have a uniform GPL boilerplate. Expanded copyright year ranges and listed authors (if they were in the comment section) under the Red Hat Author(s) section.
* Unsafe bootloader defaults (#243556, #243799)msivak2007-09-211-2/+4
| | | | | | | | | | | 2007-09-21 Martin Sivak <msivak@redhat.com> * bootloader.py (bootloaderSetupChoices): Honor the "Boot this instalation from" choice when figuring out the drive order for bootloader (#243556, #243799). * iw/autopart_type.py (PartitionTypeWindow): Show warning when Boot from media is not allowed in Use this drive for instalation. (#243799)
* 2007-08-07 Jeremy Katz <katzj@redhat.com>Jeremy Katz2007-08-071-1/+2
| | | | * bootloader.py: Pass rootpath to kernelVersionList
* Oh crap, support for new pykickstart is here. This is too large to explainChris Lumens2007-01-161-1/+1
| | | | | in a CVS commit message so just read the ChangeLog or look at the diff. Most of it is just code reorganization and it's mostly contained in kickstart.py.
* 2006-11-16 Jeremy Katz <katzj@redhat.com>Jeremy Katz2006-11-161-1/+1
| | | | | | * yuminstall.py (YumBackend.kernelVersionList): With kernel not being UP, calling it -up doesn't make sense anymore (#215746) * bootloader.py: Likewise.
* If the kickstart file specified a drive order, pass that to booty (#214881).Chris Lumens2006-11-101-1/+4
|
* Fix tracebackPaul Nasrat2006-07-211-1/+1
|
* Check the UTC box on the text interface automatically if there's no WindowsChris Lumens2006-07-111-0/+9
| | | | partitions.
* A couple more things pykickstart found. Some of these are even bugs.Chris Lumens2006-06-221-4/+1
|
* 2006-06-09 Jeremy Katz <katzj@redhat.com>Jeremy Katz2006-06-091-0/+2
| | | | | | | | | | | | * partitions.py (Partitions.sanityCheckAllRequests): Sanity check to ensure /boot on the mactels is on one of the first 4 parts * partedUtils.py (DiskSet.savePartitions): Use gptsync to sync gpt->mbr on mactels (archLabels): Allow gpt on i386, x86_64 * bootloader.py (bootloaderSetupChoices): mactels need their bootloader on the partition.
* Don't try to pop the wait window twice - fixes text UI hang.Chris Lumens2006-05-241-2/+0
|
* 2006-05-18 Jeremy Katz <katzj@redhat.com>Jeremy Katz2006-05-181-2/+4
| | | | * bootloader.py: Window isn't always there.
* * bootloader.py (bootloaderSetupChoices): Hack for livecdJeremy Katz2006-05-181-1/+5
|
* Hook copyExtraModules back up to copy updated modules to the installedChris Lumens2006-05-171-1/+1
| | | | system after installation (#185344).
* elvis waits no moreDavid Cantrell2006-05-171-0/+1
| | | | | five new files from me to you threads are here to stay
* Finish making non-UI steps pass around the anaconda object.Chris Lumens2006-05-041-39/+40
|
* 2006-05-01 Jeremy Katz <katzj@redhat.com>Jeremy Katz2006-05-021-15/+7
| | | | | | | | | * bootloader.py: Clean up imports (getBootloader): Use isolinuxBootloader for the livecd case. * anaconda (rootpath_cb): Allow using --rootpath=cd:/path to specify that we're doing a livecd. This is likely to change... * flags.py (Flags.__init__): Add livecd flag
* 2006-05-01 Jeremy Katz <katzj@redhat.com>Jeremy Katz2006-05-011-5/+9
| | | | | | * bootloader.py (writeBootloader): Don't traceback if there's no rootdev (eg, rootpath mode) so that we can have a bootloader setup for live CDs.
* Get ready for a surprise...David Cantrell2006-03-241-1/+2
| | | | not really. It's just iutil.getArch() -> rhpl.getArch() updates.
* - add kickstart dmraid supportPeter Jones2006-01-311-0/+2
|
* 2005-10-27 Jeremy Katz <katzj@redhat.com>Jeremy Katz2005-10-271-1/+3
| | | | | | | | | | * bootloader.py (writeBootloader): Handle inconsistently named kernel-xen-{guest,hypervisor} kernels * yuminstall.py (YumBackend.doRepoSetup): Give full error on tty3. (YumBackend.selectBestKernel): Temporarily allow installation of xen-hypervisor kernel package by passing 'xen0' on kernel command line (YumBackend.kernelVersionList): Remove obsolete cruft, add xen stuff
* Make backend actually installPaul Nasrat2005-08-311-2/+2
|