diff options
author | Chris Lumens <clumens@redhat.com> | 2008-01-17 15:04:45 -0500 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2008-01-18 10:42:06 -0500 |
commit | 9dcbc3d85414180cccf74306f54bdf7eb60da42c (patch) | |
tree | 8265304ae7e7b84011d694119211babfe92582b8 /partedUtils.py | |
parent | 55ebcb946067bab70d4a89a49c2aea993c686ef9 (diff) | |
download | anaconda-9dcbc3d85414180cccf74306f54bdf7eb60da42c.tar.gz anaconda-9dcbc3d85414180cccf74306f54bdf7eb60da42c.tar.xz anaconda-9dcbc3d85414180cccf74306f54bdf7eb60da42c.zip |
Don't flush after rescanning so recently attached disks are available.
Diffstat (limited to 'partedUtils.py')
-rw-r--r-- | partedUtils.py | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/partedUtils.py b/partedUtils.py index 0cf218f01..f047a2fca 100644 --- a/partedUtils.py +++ b/partedUtils.py @@ -1272,22 +1272,22 @@ class DiskSet: def exceptionDisks(self, anaconda, probe=True): if probe: - self.refreshDevices() isys.flushDriveDict() + self.refreshDevices() drives = [] for d in isys.removableDriveDict().items(): - func = lambda p: not p.get_flag(parted.PARTITION_RAID) and not p.get_flag(parted.PARTITION_LVM) and p.fs_type.name in ["ext3", "ext2", "vfat"] + func = lambda p: not p.get_flag(parted.PARTITION_RAID) and not p.get_flag(parted.PARTITION_LVM) and p.fs_type.name in ["ext3", "ext2", "vfat"] - disk = self.disks[d[0]] - parts = filter_partitions(disk, func) + disk = self.disks[d[0]] + parts = filter_partitions(disk, func) - if len(parts) == 0: - drives.append(d) - else: - for part in parts: - name = "%s%s" % (part.disk.dev.path, part.num) - drives.append((os.path.basename(name), d[1])) + if len(parts) == 0: + drives.append(d) + else: + for part in parts: + name = "%s%s" % (part.disk.dev.path, part.num) + drives.append((os.path.basename(name), d[1])) return drives |