| Commit message (Collapse) | Author | Age | Files | Lines |
| | |
|
| |
|
|
| |
Use True/False over 1/0. It's the future.
|
| | |
|
| |
|
|
|
|
| |
This doesn't atually mean kickstart allows you to specify partitions and
clearpart. However, you can leave out partitioning information from your
kickstart file, specify it from the UI, and get an install to complete.
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
| |
- 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.
|
| | |
|
| |
|
|
| |
It will soon reappear in storage.__init__.py.
|
| | |
|
| | |
|
| |
|
|
|
|
|
| |
For Fedora, this means we will not allow upgrades of detected root filesystems
more than two releases old, or "upgrading" a newer install with an older one.
For RHEL, we don't yet know what to do so just allow things to continue as they
always have. Using "upgradeany" still circumvents this check.
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
| |
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).
|
| |
|
|
|
|
| |
The type of the filesystem is a string available via the 'type'
attribute. Use the type as the key for the parted.fileSystemType
hash.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
| |
To get a parted.Device object, we call:
parted.getDevice(path)
To create a new parted.Disk object, we need a parted.Device and
we call:
parted.Disk(device=parted.Device)
|
| | |
|
| |
|
|
|
|
| |
I kind of hate having to do this since Exception is so broad but it's the
fastest way to get past this and on to the real bugs. We need to go back
and add more fine-grained error handling later though.
|
| |
|
|
|
|
|
| |
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.
|
| | |
|
| |
|
|
|
|
| |
Lots of methods and attributes have changed in the new pyparted.
This patch fixes up partedUtils.py and autopart.py to work with the
new pyparted.
|
| |
|
|
| |
Now provided by pyparted as parted.getPartitionByName()
|
| |
|
|
|
| |
This function is now provided as a method on parted.Partition
objects.
|
| |
|
|
|
|
|
| |
All this function did was return the length of the partition in
sectors, which we already have on the object. It was called from
one place in autopart.py. Removed the function and now just
reference the length directly in autopart.py.
|
| |
|
|
| |
Now provided by parted.Disk.getLVMPartitions()
|
| |
|
|
| |
Now provided by parted.Disk.getRaidPartitions()
|
| |
|
|
| |
Now provided by parted.Disk.getPrimaryPartitions()
|
| |
|
|
| |
Now provided by parted.Disk.getLogicalPartitions()
|
| |
|
|
| |
Now provided by parted.Partition.getDeviceNodeName()
|
| | |
|
| |
|
|
|
| |
The parted.Disk object now provides a getMaxLogicalPartitions()
method.
|
| |
|
|
|
| |
The parted.Device object now offers functions to translate
between cylinders and sectors.
|
| |
|
|
|
| |
The parted.Partition object provides getSize() to return the size
of the partition in a human-readable format.
|
| |
|
|
|
| |
The parted.Device object now provides a getSize() method to return
the size of the device in a human-readable format.
|
| |
|
|
|
| |
This function was only used inside partedUtils.py, but it seemed
reasonable to move it in to the new pyparted.
|
| | |
|
| |
|
|
| |
This function is just a pass-through for isys.readFSType().
|
| |
|
|
|
|
| |
While going through partedUtils.py to see what can be pulled in
to the new pyparted, I found some things were no longer used by
anything in anaconda. This patch removes that code.
|
| |
|
|
|
|
|
|
| |
The attached patch updates findExistingRootPartitions to return dev, fs,
release string, label and uuid and fixes all callers to use the 5 tuple. This
is required so that later changes to upgrades functionality can fit better in
the code. For more background see:
https://www.redhat.com/archives/anaconda-devel-list/2008-December/msg00210.html
|
| |
|
|
|
|
|
|
|
|
| |
This allows us to generate traceback-like stacks on demand
using inspect.stack(). stack() returns a list of tuples
representing the stack frames at the time of invocation. A
traceback object can be converted to a list of these
tuples by calling inspect.getinnerframes(tb). NOTE: the
stack() function returns the frames in the opposite order
of a traceback's.
|
| | |
|
| | |
|
| |
|
|
| |
Fix various syntax errors caught by PyChecker
|
| |
|
|
|
| |
ext4 was detected only on lvm or raid or encrypted partitions.
Fw port of rhel5's #466868 and #465248.
|
| |
|
|
|
| |
Add modules for sd/mmc subsystem and support the block device name where we
need to do munging given the 'p' separator
|
| |
|
|
|
|
|
|
|
| |
This goes back to how the stage2 stuff used to work. By this point in the
upgrade process, the installation source would have already been mounted so
trying to mount it again to test for /etc/redhat-release would result in
an error from mount. However, we no longer have the source mounted when
performing this test so we need to make sure to try mounting the protected
partitions just like every other.
|
| | |
|