summaryrefslogtreecommitdiffstats
path: root/partedUtils.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2002-11-04 20:00:11 +0000
committerMatt Wilson <msw@redhat.com>2002-11-04 20:00:11 +0000
commit7c2b2a454cc8199f6d403374c560a556ec87b457 (patch)
treebf66ec5e1bec215b19f8ca79d97a46156ca52584 /partedUtils.py
parentb2afbee544d518f1edbb3174611445fbd8aeaddc (diff)
downloadanaconda-7c2b2a454cc8199f6d403374c560a556ec87b457.tar.gz
anaconda-7c2b2a454cc8199f6d403374c560a556ec87b457.tar.xz
anaconda-7c2b2a454cc8199f6d403374c560a556ec87b457.zip
use disk_new_fresh
Diffstat (limited to 'partedUtils.py')
-rw-r--r--partedUtils.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/partedUtils.py b/partedUtils.py
index 244bfad0e..d0f2802a8 100644
--- a/partedUtils.py
+++ b/partedUtils.py
@@ -651,7 +651,7 @@ class DiskSet:
if (initAll and ((clearDevs is None) or (len(clearDevs) == 0)
or drive in clearDevs) and not flags.test):
try:
- dev.disk_create(getDefaultDiskType())
+ dev.disk_new_fresh(getDefaultDiskType())
disk = parted.PedDisk.new(dev)
self.disks[drive] = disk
except parted.error, msg:
@@ -690,7 +690,7 @@ class DiskSet:
continue
else:
try:
- dev.disk_create(getDefaultDiskType())
+ dev.disk_new_fresh(getDefaultDiskType())
except parted.error, msg:
DiskSet.skippedDisks.append(drive)
continue
@@ -713,7 +713,7 @@ class DiskSet:
continue
else:
try:
- dev.disk_create(getDefaultDiskType())
+ dev.disk_new_fresh(getDefaultDiskType())
except parted.error, msg:
DiskSet.skippedDisks.append(drive)
continue