summaryrefslogtreecommitdiffstats
path: root/bootloader.py
Commit message (Collapse)AuthorAgeFilesLines
* Move bootloader into the Anaconda object.Chris Lumens2010-02-041-28/+28
|
* Move storage into the Anaconda class.Chris Lumens2010-02-041-7/+7
|
* Move ksdata to be an attribute on Anaconda.Chris Lumens2010-02-041-2/+2
|
* Nothing sets flags.setupFilesystems anymore, so it can go too.Chris Lumens2009-12-031-13/+5
|
* Fix upgrade of GRUB with md raid boot for versions F11 and earlier.Radek Vykydal2009-10-291-0/+21
| | | | | | | | | | | | Up to F11 /dev/mdX in /etc/sysconfig/grub means that grub was installed into mbrs of all /boot md device members' disks. When upgrading grub of such a system, reinstall grub in the mbrs, and update values sysconfig file accordingly (to hold e.g. /dev/sda). Here I'm not completly sure. What if after installation the user reinstalled grub manually - restored mbrs and installed it in /dev/mdX? He wouldn't be happy with our grub update then... This is one of follow-up commits for commit 358a9a34f496fdd2b032edf12274a146b606d1a4, dealing with upgrade.
* Remove another code duplication in grub upgrade code.Radek Vykydal2009-10-291-2/+1
| | | | | This is one of follow-up commits for commit 358a9a34f496fdd2b032edf12274a146b606d1a4, dealing with upgrade.
* Default to mbr bootloader target for mdraid 1 boot device too (#526822).Radek Vykydal2009-10-081-2/+1
| | | | | | | It used to be so, because for boot device target (/dev/mdX) we installed into MBRs anyway. With Hans's patch 45a7048e5f56316e052e4699b5ec70aa291ddd5e we do what we promise (install to boot device) in this case, but it is a change and it doesn't seem to be expected as default by users.
* Expose common fsset methods and properties in class Storage.David Cantrell2009-09-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Add the following methods and properties to class Storage which map through to FSSet methods, modify existing calls to use the method on class Storage: turnOnSwap() mountFilesystems() umountFilesystems() parseFSTab() mkDevRoot() createSwapFile() fsFreeSpace() mtab mountpoints migratableDevices rootDevice Callers no longer need to pass the Anaconda object to the FSSet methods directly. The method on Storage takes care of that. The mtab() method on FSSet is exposed as a property on Storage. The same is true for fsFreeSpace().
* Lots of small grammar and wording changes.Peter Jones2009-07-131-4/+4
| | | | Just auditing the world for clarity, don't mind me.
* Edit user-visible dialogs for style.Peter Jones2009-07-131-1/+1
| | | | | We have lots of strings that we display to users which are unclear or contain poor usage and grammar. That's bad.
* Catch errors from bootloader installation and tell the user (#502210).Chris Lumens2009-06-051-3/+8
|
* Handle that the default bootloader entry can sometimes be None (#496618).Chris Lumens2009-05-051-3/+7
| | | | | | | In certain upgrade cases, the default bootloader entry will never be set and so at the point where we write the new bootloader config, we'll hit a traceback condition. Older versions of anaconda allowed the default entry to be None here, so we need to do the same.
* 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.