summaryrefslogtreecommitdiffstats
path: root/fsset.py
diff options
context:
space:
mode:
authorDavid Cantrell <dcantrell@redhat.com>2006-07-25 18:34:22 +0000
committerDavid Cantrell <dcantrell@redhat.com>2006-07-25 18:34:22 +0000
commite333a45fd8b922b8499e36eda18bfa542db9092e (patch)
tree9fccdc4372cc4cc11ffcd36bc57cc7bd54ced2e1 /fsset.py
parentbce52553b3506947c5a3c89f63dae0a246de2098 (diff)
downloadanaconda-e333a45fd8b922b8499e36eda18bfa542db9092e.tar.gz
anaconda-e333a45fd8b922b8499e36eda18bfa542db9092e.tar.xz
anaconda-e333a45fd8b922b8499e36eda18bfa542db9092e.zip
* anaconda.spec: Require parted >= 1.7.1, pyparted >= 1.7.2
* fsset.py (prepbootFileSystem.formatDevice): Don't need to run sfdisk anymore, parted handles this now. * scripts/upd-instroot: Removed sbin/sfdisk.
Diffstat (limited to 'fsset.py')
-rw-r--r--fsset.py15
1 files changed, 2 insertions, 13 deletions
diff --git a/fsset.py b/fsset.py
index ae2e33545..573bbc80c 100644
--- a/fsset.py
+++ b/fsset.py
@@ -955,10 +955,6 @@ class prepbootFileSystem(FileSystemType):
self.formattable = 0
def formatDevice(self, entry, progress, chroot='/'):
- # FIXME: oh dear is this a hack beyond my wildest imagination.
- # parted doesn't really know how to do these, so we're going to
- # exec sfdisk and make it set the partition type. this is bloody
- # ugly
devicePath = entry.device.setupDevice(chroot)
(disk, part) = getDiskPart(devicePath)
if disk is None or part is None:
@@ -966,15 +962,8 @@ class prepbootFileSystem(FileSystemType):
"(%s)" %(devicePath,))
return
- args = [ "--change-id", disk, "%d" %(part,), "41" ]
- if disk.startswith("/tmp/") and not os.access(disk, os.R_OK):
- isys.makeDevInode(disk[5:], disk)
-
- log.info("going to run %s" %(args,))
- rc = iutil.execWithRedirect("/usr/sbin/sfdisk", args,
- stdout = "/dev/tty5", stderr = "/dev/tty5")
- if rc:
- raise SystemError
+ if part and part.is_flag_available(parted.PARTITION_PREP):
+ part.set_flag(parted.PARTITION_PREP, 1)
fileSystemTypeRegister(prepbootFileSystem())