summaryrefslogtreecommitdiffstats
path: root/partedUtils.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2002-11-04 20:14:25 +0000
committerMatt Wilson <msw@redhat.com>2002-11-04 20:14:25 +0000
commita6745e390cc2d9883a118353bb377c98afcfcd0e (patch)
treedf457439ec138aa54fd1369786994b38f6fac357 /partedUtils.py
parent7c2b2a454cc8199f6d403374c560a556ec87b457 (diff)
downloadanaconda-a6745e390cc2d9883a118353bb377c98afcfcd0e.tar.gz
anaconda-a6745e390cc2d9883a118353bb377c98afcfcd0e.tar.xz
anaconda-a6745e390cc2d9883a118353bb377c98afcfcd0e.zip
commit bits too, it seems
Diffstat (limited to 'partedUtils.py')
-rw-r--r--partedUtils.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/partedUtils.py b/partedUtils.py
index d0f2802a8..01fe89064 100644
--- a/partedUtils.py
+++ b/partedUtils.py
@@ -651,8 +651,8 @@ class DiskSet:
if (initAll and ((clearDevs is None) or (len(clearDevs) == 0)
or drive in clearDevs) and not flags.test):
try:
- dev.disk_new_fresh(getDefaultDiskType())
- disk = parted.PedDisk.new(dev)
+ disk = dev.disk_new_fresh(getDefaultDiskType())
+ disk.commit()
self.disks[drive] = disk
except parted.error, msg:
DiskSet.skippedDisks.append(drive)
@@ -690,7 +690,8 @@ class DiskSet:
continue
else:
try:
- dev.disk_new_fresh(getDefaultDiskType())
+ disk = dev.disk_new_fresh(getDefaultDiskType())
+ disk.commit()
except parted.error, msg:
DiskSet.skippedDisks.append(drive)
continue
@@ -713,7 +714,8 @@ class DiskSet:
continue
else:
try:
- dev.disk_new_fresh(getDefaultDiskType())
+ disk = dev.disk_new_fresh(getDefaultDiskType())
+ disk.commit()
except parted.error, msg:
DiskSet.skippedDisks.append(drive)
continue