summaryrefslogtreecommitdiffstats
path: root/fsset.py
diff options
context:
space:
mode:
authorPaul Nasrat <pnasrat@redhat.com>2006-07-27 13:23:53 +0000
committerPaul Nasrat <pnasrat@redhat.com>2006-07-27 13:23:53 +0000
commitc1af5b166f015134ec5afe32be6cc4b88274d6b9 (patch)
tree7aba3a248ceadc788a47d0f41b66eef7fffa5fc2 /fsset.py
parentaf9c49fa0485c76ebeb0b2dd560effccd3821751 (diff)
downloadanaconda-c1af5b166f015134ec5afe32be6cc4b88274d6b9.tar.gz
anaconda-c1af5b166f015134ec5afe32be6cc4b88274d6b9.tar.xz
anaconda-c1af5b166f015134ec5afe32be6cc4b88274d6b9.zip
Better PREP handling with parted flags
Diffstat (limited to 'fsset.py')
-rw-r--r--fsset.py12
1 files changed, 2 insertions, 10 deletions
diff --git a/fsset.py b/fsset.py
index e1aeb45bd..50d79d576 100644
--- a/fsset.py
+++ b/fsset.py
@@ -935,7 +935,7 @@ class prepbootFileSystem(FileSystemType):
def __init__(self):
FileSystemType.__init__(self)
self.partedFileSystemType = None
- self.partedPartitionFlags = [ parted.PARTITION_BOOT ]
+ self.partedPartitionFlags = [ parted.PARTITION_BOOT, parted.PARTITION_PREP ]
self.checked = 0
self.name = "PPC PReP Boot"
self.maxSizeMB = 10
@@ -955,15 +955,7 @@ class prepbootFileSystem(FileSystemType):
self.formattable = 0
def formatDevice(self, entry, progress, chroot='/'):
- devicePath = entry.device.setupDevice(chroot)
- (disk, part) = getDiskPart(devicePath)
- if disk is None or part is None:
- log.error("oops, somehow got a bogus device for the PReP partition "
- "(%s)" %(devicePath,))
- return
-
- if part and part.is_flag_available(parted.PARTITION_PREP):
- part.set_flag(parted.PARTITION_PREP, 1)
+ return
fileSystemTypeRegister(prepbootFileSystem())