summaryrefslogtreecommitdiffstats
path: root/partedUtils.py
Commit message (Collapse)AuthorAgeFilesLines
...
* 2007-04-17 Jeremy Katz <katzj@redhat.com>Jeremy Katz2007-04-171-8/+12
| | | | | * partedUtils.py (DiskSet.openDevices): Better message and give option to reboot or continue anyway in the too many partitions case
* * partedUtils.py (DiskSet.openDevices): Check for more than 15David Cantrell2007-04-171-3/+16
| | | | | | partitions on the disk we are scanning. If more than 15 are found, alert the user and return. libata won't allow more than 15 partitions at the moment.
* Remove unused code.Chris Lumens2007-04-101-33/+0
|
* Move the clearpart logic out of openDevices since we don't want to do it everyChris Lumens2007-03-281-21/+47
| | | | time openDevices is called, which is fairly often (#232936).
* Allow upgrades from Fedora Core to Fedora.Chris Lumens2007-03-221-1/+2
|
* 2007-02-26 Jeremy Katz <katzj@redhat.com>Jeremy Katz2007-02-261-3/+3
| | | | * partedUtils.py (checkDiskLabel): Clean up text (#228198)
* * partedUtils.py (openDevices): don't relabel disks that containdlehman2007-02-221-1/+21
| | | | | | | | | | | | | | | | | | | | | | | protected partitions (#220331) * autopart.py (doClearPartAction): clear all non-protected partitions from disks that contain a protected partition IFF initAll is set * partedUtils.py (hasProtectedPartitions): new method to check if a drive contains protected partitions * packages.py (writeRegKey): method to write out regkey * dispatch.py: add writeregkey step * installclass.py (BaseInstallClass): add regkey fields and step * instdata.py: include regkey settings in anaconda-ks.cfg * packages.py (regKeyScreen): allow access to regkey screen while moving backwards (#219361) * installclasses/rhel.py: add support for real regkeys (via instnum)
* Oh crap, support for new pykickstart is here. This is too large to explainChris Lumens2007-01-161-2/+2
| | | | | 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.
* * partedUtils.py: self.anaconda.intf -> intfDavid Cantrell2006-12-151-1/+1
|
* * fsset.py: This file is fsset.py, not fstab.py.David Cantrell2006-12-151-42/+58
| | | | | * partedUtils.py (DiskSet): Handle instantiation from LabelFactory where we will be handed no anaconda object reference (#219789).
* * partedUtils.py (DiskSet.openDevices): Don't always dasdfmt on zSeries,David Cantrell2006-12-131-10/+11
| | | | | | | | | | | | only do that for disks that are flagged to be cleared or if the init all flag is set. * upgrade.py (findExistingRoots): Do not pass anaconda object reference to findExistingRootPartitions(). * iw/autopart_type.py (PartitionTypeWindow): Do not pass intf to checkNoDisks(). * textw/partition_text.py: Likewise.
* * partedUtils.py (DiskSet): Pass self.anaconda.intf to checkDiskLabel.David Cantrell2006-12-131-1/+1
|
* * anaconda (__main__): Pass reference to anaconda object to InstallData.David Cantrell2006-12-131-50/+65
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fsset.py (readFstab): Take reference to anaconda object rather than a path and intf. Pass anaconda reference to DiskSet(). * fssey.py (__main__): Removed. * installclass.py (BaseInstallClass): Pass anaconda reference to the reset() method for InstallData. * instdata.py (InstallData.reset): Take anaconda object reference as parameter. Pass anaconda to DiskSet(). * instdata.py (InstallData.__init__): Take anaconda object ref as parameter, pass it to reset() method. * kickstart.py (AnacondaKSHandlers): Store anaconda object reference, pass to DiskSet() object creations. * partedUtils.py (DiskSet): Take anaconda object reference, store. Use self.anaconda throughout DiskSet object, remove individual pass-ins of intf and other anaconda object parts. * partedUtils.py (DiskSet.dastFmt): Remove -P dasdfmt(8) arg (#218861). * partedUtils.py (DiskSet.openDevices): Remove intf, initAll, zeroMbr, and clearDevs params since those are in the anaconda object. When a kickstart install is running, the dasd found is in the clearpart list, and the --initlabel option has been used, skip the interactive dialog asking if you want to format the DASD and just do it (#218861). * partitioning.py (partitionObjectsInitialize): Removed arguments since the anaconda object provides those now. * upgrade.py (mountRootPartition): Pass anaconda object ref to DiskSet. Only pass anaconda ref to readFstab(). * upgrade.py (upgradeMountFilesystems): Likewise.
* Scan for labels on logical volumes during upgrades (#217191).Chris Lumens2006-12-011-0/+13
|
* 2006-09-22 Jeremy Katz <katzj@redhat.com>Jeremy Katz2006-09-221-3/+0
| | | | | * partedUtils.py (DiskSet.findExistingRootPartitions): Don't give an error on partition mount errors (#201805)
* 2006-09-21 Jeremy Katz <katzj@redhat.com>Jeremy Katz2006-09-211-2/+2
| | | | | | | | | | * partitioning.py (partitionObjectsInitialize): Don't call check no disks here (#207471) * textw/partition_text.py (PartitionTypeWindow.__call__): And here * iw/autopart_type.py (PartitionTypeWindow.getNext): Check for no disks here * partedUtils.py (DiskSet.checkNoDisks): Don't exit, just return with an error code
* - remove special casing of s390 in most device-mapper codepathsPeter Jones2006-08-171-13/+7
|
* 2006-08-10 Jeremy Katz <katzj@redhat.com>Jeremy Katz2006-08-101-0/+7
| | | | | * partedUtils.py (productMatches): Tweak acceptable RHEL upgrade matches (#201741)
* - make mpath + iscsi workPeter Jones2006-08-011-5/+5
|
* - fix accidental skippedList additionsPeter Jones2006-08-011-1/+2
|
* - update multipath and dmraid support, make it actually installPeter Jones2006-07-261-52/+44
|
* 2006-07-20 Jeremy Katz <katzj@redhat.com>Jeremy Katz2006-07-201-3/+3
| | | | | | * partedUtils.py (DiskSet.startAllRaid): Calling refreshDevices() here totally breaks adding partitions... not sure what the intent was, but needs to be handled differently. (#199459)
* - add start and stop routines for mpathPeter Jones2006-07-171-19/+70
|
* Use subprocess instead of our own code. Fix all calls to execWith* soChris Lumens2006-07-121-2/+1
| | | | | the command is no longer the first argument, since subprocess doesn't work that way. Remove unneeded /proc/e820info cruft. Remove iutil.rmrf.
* PSU, PSU wherefore art though...Paul Nasrat2006-07-071-3/+18
| | | | | | | rescue.py (runRescue): Move label reading to partedUtils.py. partedUtils.py (DiskSet.findExistingRootPartitions): Look up filesystem labels as we find root partitions, as we won't have LVM active if we wait until later (#196345).
* Instead of detecting whether a device is removable or not, detect whetherChris Lumens2006-06-221-1/+1
| | | | | there is media present in devices where it may be removed. This should finish up getting USB installation working.
* 2006-06-15 Jeremy Katz <katzj@redhat.com>Jeremy Katz2006-06-161-0/+2
| | | | * partedUtils.py (DiskSet.startDmRaid): No dmraid on s390
* 2006-06-09 Jeremy Katz <katzj@redhat.com>Jeremy Katz2006-06-091-3/+8
| | | | | | | | | | | | * 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 get stuck in an infinite loop.Chris Lumens2006-05-191-0/+1
|
* Let's try the right test here.Chris Lumens2006-05-191-1/+1
|
* Fix traceback looking for protected partitions.Chris Lumens2006-05-181-1/+3
|
* Change findExistingRoots to use the anaconda class, which required aChris Lumens2006-05-171-14/+21
| | | | | | | | | | | bunch of changes elsewhere in upgrade.py to also use anaconda. This required fixing up rescue mode (which was broken anyway) in the same way, which then required the same sort of stuff done in anaconda. Oh, and all that was so we could disable a meaningless error message on searching for existing installations on hard drive installs/upgrades. I forgot what I was really working on.
* Get ready for a surprise...David Cantrell2006-03-241-16/+17
| | | | not really. It's just iutil.getArch() -> rhpl.getArch() updates.
* Build it up, tear it down. Since we're destroying isys from the inside,David Cantrell2006-03-241-2/+2
| | | | | figured I'd remove isys.getpagesize() since the Python resource module has that.
* Ignore disks listed in ignoredisks, even if we have clearpart --all (#186438).Chris Lumens2006-03-231-1/+2
|
* Create a dictionary in flags.py for storing /proc/cmdline. Nuke allChris Lumens2006-03-221-10/+7
| | | | references to /proc/cmdline from everywhere else in favor of this dict.
* - fix partition naming for dm devicesPeter Jones2006-02-061-3/+9
|
* - add kickstart dmraid supportPeter Jones2006-01-311-2/+3
|
* 2006-01-26 Jeremy Katz <katzj@redhat.com>Jeremy Katz2006-01-261-1/+1
| | | | | * partedUtils.py (DiskSet.openDevices): Patch from Patrick Mansfield so that device nodes don't disappear out from under us.
* * dmraid.py (dmDriveCache): add dmDriveCache class, to to managePeter Jones2005-12-111-52/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | our three-drive-monte with isys's hard drive list. (getRaidSetInfo): remove completely (scanForRaid): don't use getRaidSetInfo, just test the RaidSet object directly. Also log a warning when we encounter a degraded raidset. (startAllRaid): don't use a generator, since we need to provide a non-None empty result set. (stopRaidSet): simplify the code a bit. (stopAllRaids): remove traceback stuff, and remove artifacts of getRaidSetInfo * fsset.py: don't disable dmraids when rescanning partitions (LogicalVolumeDevice): rename the volume group name argument to "vgname" instead of "lvname", and add an argument for the object so we can find its physical volumes. * lvm.py (writeForceConf): take device list as an argument, and use that to write the filter rules. * partRequests.py (LogicalVolumeRequestSpec.getDevice): pass vg object in to fsset.LogicalVolumeDevice * partedUtils.py (DiskSet.startDmRaid): rewrite it to remove some unneeded code, and make it a lot simpler. (.startAllRaid): cut out a lot of crap, make the s390 handling simpler (.stopDmRaid): remove some useless stuff (.stopAllRaid): remove the s390 handling (.openDevices): check for None to see if dmraid is initialized. * partitions.py (Partitions.setFromDisk): call lvm.writeForceConf before we probe for PV/VG/LV info.
* 2005-11-17 Jeremy Katz <katzj@redhat.com>Jeremy Katz2005-11-181-3/+3
| | | | | * partedUtils.py (DiskSet.openDevices): debug prints -> log.debug (#173533)
* - support for dmraidPeter Jones2005-11-171-4/+74
|
* 2005-10-28 Jeremy Katz <katzj@redhat.com>Jeremy Katz2005-10-281-0/+1
| | | | * partedUtils.py (max_logical_partition_count): Likewise.
* Reorder cases so we don't run into a surprise None (#170003).Chris Lumens2005-10-061-2/+2
|
* Add support for Pegasos machine (dwmw2, #166013).Chris Lumens2005-08-161-2/+6
|
* Use new logging system.Chris Lumens2005-08-121-6/+8
|
* 2005-05-23 Jeremy Katz <katzj@redhat.com>fc4-baseJeremy Katz2005-05-231-4/+1
| | | | | * partedUtils.py (DiskSet.getLabels): Look for labels on all fstypes.
* 2005-03-29 Jeremy Katz <katzj@redhat.com>Jeremy Katz2005-03-291-4/+4
| | | | | * partedUtils.py (getRedHatReleaseString): Change to getReleaseString. * upgrade.py (findExistingRoots): Method name change.
* Delete snapshot LVs before their parentsPeter Jones2005-03-281-1/+3
|
* add commaBill Nottingham2005-03-251-1/+1
|