summaryrefslogtreecommitdiffstats
path: root/partitions.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2002-06-12 06:50:20 +0000
committerJeremy Katz <katzj@redhat.com>2002-06-12 06:50:20 +0000
commitb2a26d21724cf896c67c9a792d222106dfcd603c (patch)
treecd5d152d6a0ef9e6d9a1644707932c2927ea42ec /partitions.py
parent9f740ec7c4c11f24f2e0bc45a1bdb19847f32e2b (diff)
downloadanaconda-b2a26d21724cf896c67c9a792d222106dfcd603c.tar.gz
anaconda-b2a26d21724cf896c67c9a792d222106dfcd603c.tar.xz
anaconda-b2a26d21724cf896c67c9a792d222106dfcd603c.zip
improve preexisting scanning... don't stop raid until after lvm scan. also, pesize needs to be an int, not a string
Diffstat (limited to 'partitions.py')
-rw-r--r--partitions.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/partitions.py b/partitions.py
index 6934b5543..a7c8dd35d 100644
--- a/partitions.py
+++ b/partitions.py
@@ -179,7 +179,6 @@ class Partitions:
preexist = 1)
spec.size = spec.getActualSize(self, diskset)
self.addRequest(spec)
- diskset.stopAllRaid()
# now to read in pre-existing LVM stuff
lvm.vgscan()
@@ -201,9 +200,14 @@ class Partitions:
continue
if fields[0].strip() == "PE size":
pesize = fields[1].strip()
+ try:
+ pesize = int(pesize)
+ except:
+ log("PE size for %s not a valid integer, defaulting to 4096" %(vg,))
+ pesize = 4096
if not pesize:
- log("Unable to find PE size for %s, defaulting to 4096" (vg,))
+ log("Unable to find PE size for %s, defaulting to 4096" %(vg,))
pesize = 4096
# Now find the physical volumes associated with this VG
@@ -271,6 +275,8 @@ class Partitions:
preexist = 1)
self.addRequest(spec)
lvm.vgdeactivate()
+
+ diskset.stopAllRaid()