diff options
author | Paul Nasrat <pnasrat@redhat.com> | 2006-07-27 13:23:53 +0000 |
---|---|---|
committer | Paul Nasrat <pnasrat@redhat.com> | 2006-07-27 13:23:53 +0000 |
commit | c1af5b166f015134ec5afe32be6cc4b88274d6b9 (patch) | |
tree | 7aba3a248ceadc788a47d0f41b66eef7fffa5fc2 /fsset.py | |
parent | af9c49fa0485c76ebeb0b2dd560effccd3821751 (diff) | |
download | anaconda-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.py | 12 |
1 files changed, 2 insertions, 10 deletions
@@ -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()) |