summaryrefslogtreecommitdiffstats
path: root/storage/__init__.py
Commit message (Collapse)AuthorAgeFilesLines
* Store iscsi node pointer in iScsiDiskDevice objectsHans de Goede2009-08-041-2/+4
| | | | | This is a preparation patch for adding support for writing the necessary dracut cmndline options to grub.conf
* Log non-upgradable upgrade candidate roots.Radek Vykydal2009-07-241-0/+3
| | | | | | This can be helpful in determining the cause of failed upgrade from log. I used it when working on #499321. Can be kind of corner-case, but can't hurt.
* Remove unresolvable file devices from the devicetree. (#503830)David Lehman2009-07-211-0/+4
|
* Change DeviceTree.devices from a dict to a list.David Lehman2009-07-211-14/+11
|
* 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.
* Don't write optical devices to /etc/fstab (#505697).Chris Lumens2009-07-131-0/+4
|
* Initial FCoE supportHans de Goede2009-07-021-0/+5
| | | | | | | | | | | | | | | This patch adds support for using FCoE during the installation. This patch merely lays the initial ground work, there is more work todo: - The system will not boot without manual help after the install, as dracut / mkinitrd do not support FCoE yet - If FCoE is not used for / but for example for /srv, then information about the nic used for FCoE needs to be written in a to be defined config file in the system, and rc.sysinit needs to be thought to read this file and bring up FCoE SAN's / Fabrics not used for / - kickstart support for FCoE still needs to be done
* Fix upgrade selected in UI after storage reset (#503302)Radek Vykydal2009-07-021-0/+2
| | | | | | | Fix of this UI flow: doing storage reset after root partitions discovery (e.g. in partitioning step) and then going back and selecting upgrade. In place of using root partition device objects obsoleted by storage reset, find root partition devices of new device tree.
* Update code that checks for devices that contain install media.David Lehman2009-07-011-5/+4
|
* Rework tracking of devices containing installation media. (#497087)David Lehman2009-07-011-17/+13
| | | | | | | | | | In storage.Storage we keep the device specifications as provided to us. In the devicetree, during population, we use udev to resolve the user- provided specs to device names. As we create StorageDevice instances for the devices, we set a new attribute ("protected") as appropriate. Once the DeviceTree is populated, we use the devices' protected attribute to determine whether or not they contain installation media. This way we can track protected devices even when their names change.
* Write out "MAILADDR root" into mdadm.conf (#508321)Radek Vykydal2009-06-301-1/+2
|
* Access format options property instead of mountopts attr. (#506219)David Lehman2009-06-221-1/+1
|
* Be more careful about identifying NFS fstab entries.David Lehman2009-06-221-1/+1
|
* If not enough memory is installed, enforce swap partition creation (#498742).Chris Lumens2009-06-101-4/+10
|
* Fix discovery of existing raid/lvm for ks install without clearpart ↵Radek Vykydal2009-06-051-6/+3
| | | | | | | | | | | | | | | | | (#503310) (#503681) Default clearPartType to None so that all devices are discovered during storage initialization step, and UI parttype can be set to its default "Replace existing linux system". Also set clearPartType appropriately when going back from partition dialog so that all devices are discovered during storage reset. There is one case that can't be resolved this way: clearpart --all or --linux is set in ks and "Create custom layout" is selected in parttype UI step. Because of ks setting, storage initialization doesn't discover devices (RAID, LVM) on partitions that are to be cleared and therefore they are not present in custom partition dialog. This can be workarounded by going back and than again to custom partitioning dialog. I think we should grey-out type of partitioning combo set to value from ks clearpart command.
* Use gettext.ldngettext when necessary (#467603)David Cantrell2009-06-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | The i18n people have suggested using ngettext when we need to have singular and plural forms of strings, where the count will vary as to what we are reporting to the user. I've made the changes they have suggested. I created a new lambda function called P_() to use for the plural cases. P_() takes in three parameters: 1) The singular form of the string. 2) The plural form of the string. 3) A count. Here's an example: ....some loop runs doing stuff bytesWritten = 47 msg = P_("Wrote %d byte.", "Wrote %d bytes.", bytesWritten) % (bytesWritten,) print msg The % substitution is correct at the end because P_() returns a single string, so we only need the format string to account for that. Some strings have been changed slightly to make it easier for translations to other languages, particularly when choosing plural forms.
* Limit the trigger to block type devices.Joel Granados Moreno2009-05-281-1/+1
| | | | | When calling udev_trigger for the save exception to local storage device, limit the call to block devices.
* Make sure that the devices are correctly detected (#491700)Joel Granados Moreno2009-05-271-0/+3
|
* Move /boot checks from sanityCheck into Platform.checkBootRequest.Chris Lumens2009-05-211-43/+1
|
* Call checkBootRequest from sanityCheck.Chris Lumens2009-05-211-0/+5
|
* Set clearPartType to None on preupgrade too (#499321).Chris Lumens2009-05-151-1/+1
|
* Fix a typo when probing exception disks.Chris Lumens2009-05-121-1/+1
|
* Add support for --noformat too.Chris Lumens2009-05-121-6/+12
|
* Add support for --onpart, --ondrive, and --useexisting.Chris Lumens2009-05-121-1/+13
|
* Make the storage.writeKS method useful and called from instdata (#493703).Chris Lumens2009-05-121-0/+44
|
* 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.
* 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.
* 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.
* 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.
* Pass clearPartType to the devicetree as well.Chris Lumens2009-05-011-0/+2
|
* 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.
* 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 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.
* 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.
* Don't remove an inconsistent lvm partition from the devicetree (#496638)Hans de Goede2009-04-241-0/+4
| | | | | | | | | | | | | | 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
|
* Include the device path in DeviceError exceptions.David Lehman2009-04-211-3/+3
|
* [PATCH] Possible fix for some encryption related bugs during the Custom ↵Martin Sivak2009-04-171-0/+7
| | | | Layout editation (#495848)
* Fix typo.Joel Granados Moreno2009-04-161-1/+1
|
* Implement the save to USB using devicetree devices.Joel Granados Moreno2009-04-161-16/+13
|
* Make save to usb work.Joel Granados Moreno2009-04-141-3/+3
|
* Setup the disks before partitioning as the nodes are needed.Joel Granados Moreno2009-04-101-0/+5
|
* Rescan the devices when we are saving a traceback.Joel Granados Moreno2009-04-101-0/+2
|