summaryrefslogtreecommitdiffstats
path: root/storage
Commit message (Collapse)AuthorAgeFilesLines
* Fix a traceback when installing over previous installs on PPC (#499963).Chris Lumens2009-05-121-1/+5
|
* Fix a typo when probing exception disks.Chris Lumens2009-05-121-1/+1
|
* Add support for --noformat too.Chris Lumens2009-05-122-13/+27
|
* Add support for --onpart, --ondrive, and --useexisting.Chris Lumens2009-05-122-8/+33
|
* Make the storage.writeKS method useful and called from instdata (#493703).Chris Lumens2009-05-121-0/+44
|
* Add writeKS methods to the device objects.Chris Lumens2009-05-121-0/+80
|
* Add writeKS methods to all the format objects.Chris Lumens2009-05-126-1/+31
|
* If clearPartType is None, don't attempt to clear a device (#499321).Chris Lumens2009-05-111-1/+1
|
* Once a partition is part of another device it cannot be modified. (#496760)David Lehman2009-05-081-3/+10
|
* Maintain request sort order by using req_disks instead of parents.David Lehman2009-05-081-1/+1
| | | | | | Request sorting is supposed to depend on the number of disks a given request can be allocated from (req_disks), not what disk it is currently allocated from (parents).
* Do not set a parent on the /mnt/sysimage/dev bind mount object (#499724).Chris Lumens2009-05-081-1/+1
| | | | | | | Doing so means we eventually end up trying to bind mount /mnt/sysimage/dev onto /mnt/sysimage/dev, which of course is never going to work. That means there's no device nodes and we can't get the boot blocks off devices to see if the upgrade bootloader option should even be offered.
* Run tune2fs on newly formatted ext[34] filesystems. (#495476)David Lehman2009-05-081-0/+22
|
* Don't clear the first partition on any disk with a Mac disk label (#492154).Chris Lumens2009-05-071-0/+7
|
* Fix KeyError when partition numbers change during allocation. (#497911)David Lehman2009-05-071-4/+4
|
* Verify with fsck after resizing filesystemsJeremy Katz2009-05-061-0/+2
| | | | | Resizing can introduce errors too, so for paranoia, we should check afterwards
* Check if we'll clear a partition after setting its format attr. (#499251)David Lehman2009-05-061-3/+7
|
* Don't pass the default clearPartType value to the device tree.David Lehman2009-05-061-1/+9
| | | | | | In non-kickstart installs, clearPartType gets set to CLEARPART_TYPE_LINUX before the user makes a choice. We shouldn't pass that value to the device tree constructor unless we're doing a kickstart install.
* Fix some logic errors in storage.partitioning.shouldClear.David Lehman2009-05-061-1/+5
| | | | | If we're not clearing any partitions, return early. Also, be more explicit about the CLEARPART_TYPE_LINUX case.
* Forward port various iscsi fixes from 5.4 iscsi workHans de Goede2009-05-061-13/+15
| | | | | | | | | | | | | | This patch contains the following small fixes: - There is no need to convert None as username/pass into an empty string pylibiscsi will happily take either - Only set the initiator name from ibft if the ibft flag is present - Show an error when no username is specified, but a password / reverse username / pass is given - Do not backtrace when the following happens: 1) Manually add iscsi disk 2) enter wrong IP / username without pass 3) Fix this *and* change the initiator name initially choosen - Allow having only a reverse password without a reverse username
* Make sure /boot ends up on the same disk as Apple Bootstrap (#497390).Chris Lumens2009-05-051-1/+4
|
* The PS3 bootloader allows booting from ext4 filesystems (#498539).Chris Lumens2009-05-051-1/+16
|
* Fix a typo.Chris Lumens2009-05-041-1/+1
|
* Handle fstab entries whose filesystem we don't recognize.(#498120)David Lehman2009-05-041-1/+17
| | | | | | If the line contains a filesystem we do not recognize or a device that we are unable to resolve we will just write it back out as-is if/when we write out a new fstab.
* Add an error signifying an unrecognized entry in /etc/fstab.David Lehman2009-05-041-0/+3
|
* Don't drop discovered format with unknown devices when parsing fstab.David Lehman2009-05-041-2/+2
| | | | This is just a clean-up for consistency.
* Don't call udevDeviceFormat if we're just going to clear the device (#497323).Chris Lumens2009-05-011-1/+5
|
* Pass clearPartType to the devicetree as well.Chris Lumens2009-05-012-2/+5
|
* Break the complex should-clear logic out of clearPartitions.Chris Lumens2009-05-011-29/+27
|
* Correct setting the SELinux context on mountpoints (#494995).Chris Lumens2009-05-011-8/+8
| | | | | | We need to pass the mountpoint and the chroot in separately so everything doesn't end up under /mnt/sysimage. Doing that results in the contexts being set to mnt_t, which causes all sorts of problems on reboot.
* Add a ignoreProtected= parameter to deviceImmutable that does the obvious.Chris Lumens2009-05-011-2/+2
| | | | | | | This parameter basically means a protected partition cannot be modified or deleted, but can be dealt with on a read-only basis. Right now, the only time we need that is so the hdiso install source can be written out to /etc/fstab.
* Don't mount bind mounts last, that makes /dev break.Peter Jones2009-04-301-5/+0
| | | | | | Remove the chunk of code that sortds bind mounts to the end. It appears to be completely bogus, and certainly breaks mounting of /dev during installation.
* Ignore spurious formatting on partitioned devices.David Lehman2009-04-301-0/+8
| | | | | | | | If the device contains a valid partition table we do not care what else udev tells us is there. Once we move to optionally partitioned devices, this may no longer be adequate logic for this type of problem.
* Fix action sorting for partitions on the same disk. (#498064)David Lehman2009-04-301-2/+10
|
* Allow existing LVs with filesystems to be resized (#490913)David Cantrell2009-04-291-1/+1
| | | | | | | If you have an existing disk layout and choose custom partitioning and want to resize an existing logical volume and filesystem, targetSize was getting the new size value before an ActionFormatResize() was created for the device, which resulted in a traceback.
* Use device.format.mountType insead of device.format.type for fstab.Peter Jones2009-04-281-1/+1
| | | | | | If available, use device.format.mountType instead of device.format.type when writing out fstab. This way we write out the real fstype name, not the UI name.
* Fix an error when raising FormatCreateException.Chris Lumens2009-04-281-1/+1
|
* Fix handling of swap files. (#496529)David Lehman2009-04-241-0/+11
| | | | | | We have to try as late as possible to identify the device that contains the swap file to maximize the chances that the filesystem will be mounted when we go to look for it.
* Pass anaconda to turnOnSwap so we can use swap files.David Lehman2009-04-241-5/+5
| | | | | For swap files we need to know anaconda.rootPath and since we're also using anaconda.intf it seems like time to just give in and pass anaconda.
* Fix incorrect attribute name use for retrofit flag.David Lehman2009-04-241-2/+2
| | | | This fixes a traceback during upgrade mount.
* Apply the global passphrase when doing kickstart autopart (#497533).Chris Lumens2009-04-241-3/+5
|
* Add support for encryption passphrase retrofits.David Lehman2009-04-241-0/+22
| | | | | This adds the newly established passphrase to all preexisting LUKS devices so that the system can be booted by entering a single passphrase.
* Bring luks_add_key and luks_remove_key back into devicelibs.crypto.David Lehman2009-04-241-4/+65
| | | | | | | | In order to include these in pycryptsetup we had to create yet another duplicate copy of execWithRedirect. This patch brings them back into anaconda so we can easily modify them if needed until the day when pycryptsetup has this functionality. It also allows us to redirect the output to someplace useful for debugging.
* Don't let lvremove failures from incomplete vgs crash the install. (#497401)David Lehman2009-04-241-1/+7
|
* Protect against tracebacks from the partition isFoo properties.David Lehman2009-04-241-4/+8
| | | | This just prevents us from trying to use self.partType if it is None.
* Fix handling of bind mounts. (#496406)David Lehman2009-04-241-3/+32
| | | | | | | | When we're parsing /etc/fstab the directories that serve as the devices in bind mounts are not going to be present, so we will have a hell of a time figuring out what devices contain them. However, in FSSet.mountFilesystems we should have those dirs set up already, making it possible to sort out.
* Add more filesystem checks.Chris Lumens2009-04-241-0/+11
| | | | | Enforce that certain mountpoints must be on a native Linux filesystem, and that certain directories must not be on their own filesystems.
* Support vfat filesystems in the partitioning UI (#496351).Chris Lumens2009-04-241-0/+1
|
* Don't remove an inconsistent lvm partition from the devicetree (#496638)Hans de Goede2009-04-242-2/+17
| | | | | | | | | | | | | | When a PV partition is part of an inconsistent VG, and the user chooses to ignore it we currently remove it from the devicetree, but since partition_gui.py populate() uses parted on the disk to find out about the partitions, it will still see it and then backtrace when it cannot find it in the devicetree. This patch fixes this by instead making the partition immutable. Note that I've put the reason for it being immutable in the new immutableDevices array, so that if we have similar cases in the future we can use immutableDevices for that too. We might even want to move some of our existing cases there.
* When catching an OSError, handle it as an object instead of a tuple (#497374).Chris Lumens2009-04-231-4/+4
|
* Don't allow /boot to be on an encrypted device (#496866).Chris Lumens2009-04-221-2/+8
|