diff options
author | David Lehman <dlehman@redhat.com> | 2009-02-24 11:23:40 -0600 |
---|---|---|
committer | David Lehman <dlehman@redhat.com> | 2009-02-24 11:23:40 -0600 |
commit | f8b7f2be4ed499045bcd3df5d02a3c065bd2a4a3 (patch) | |
tree | 564378b9c40c2ed9fd0d7961d85325acdfb43a21 /packages.py | |
parent | 0184b44db1d50ca405f93695c02ed2f8921cdd16 (diff) | |
download | anaconda-f8b7f2be4ed499045bcd3df5d02a3c065bd2a4a3.tar.gz anaconda-f8b7f2be4ed499045bcd3df5d02a3c065bd2a4a3.tar.xz anaconda-f8b7f2be4ed499045bcd3df5d02a3c065bd2a4a3.zip |
Lots of little updates to make things use the new storage module.
exception.py:
- Remove unused partedUtils import.
- Collect things from storage, not partitions.
gui.py:
- exceptionDisks is in storage now, not diskset.
installclasses/rhel.py:
installclasses/fedora.py:
- setDefaultPartitioning take storage arg, not partitions.
iw/autopart_type.py:
- Find things in storage, not partitions.
iw/bootloader_main_gui.py:
iw/osbootwidget.py:
- Remove unused partedUtils import.
- Find fsset in storage now.
- Use storage, not diskset, for iterating over disks/partitions.
iw/lvm_dialog_gui.py:
- Fix several typos from the original storage update.
iw/partition_gui.py:
- Find unusedMDMembers in storage, not partitions.
iw/partitionui_helpers_gui.py:
- Use StorageDevice.minSize,maxSize for resize limits.
- Update doUIRAIDLVMChecks to use new storage module.
packages.py:
- Use new storage module to list vgs for selinux hack.
storage/__init__.py:
- Fix FSSet.createSwapFile so it creates the file on the
correct device.
storage/iscsi.py:
- Use new storage module to identify iscsi disks.
textw/partition_text.py:
textw/upgrade_text.py:
- Initial update to use new storage module.
yuminstall.py:
- Use storage module to find space for upgrade transaction.
- Use storage module to locate protected partitions to mount
in doPreInstall.
Diffstat (limited to 'packages.py')
-rw-r--r-- | packages.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/packages.py b/packages.py index b34725a73..99ae83fc9 100644 --- a/packages.py +++ b/packages.py @@ -255,10 +255,7 @@ def setFileCons(anaconda): "/etc/shadow", "/etc/shadow-", "/etc/gshadow"] + \ glob.glob('/etc/dhclient-*.conf') - vgs = [] - for entry in anaconda.id.partitions.requests: - if isinstance(entry, partRequests.VolumeGroupRequestSpec): - vgs.append("/dev/%s" %(entry.volumeGroupName,)) + vgs = ["/dev/%s" % vg.name for vg in anaconda.id.storage.vgs] # ugh, this is ugly for dir in ["/etc/sysconfig/network-scripts", "/var/lib/rpm", "/etc/lvm", "/dev/mapper", "/etc/iscsi", "/var/lib/iscsi", "/root", "/var/log", "/etc/modprobe.d", "/etc/sysconfig" ] + vgs: |