summaryrefslogtreecommitdiffstats
path: root/iw/fdisk.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>1999-09-20 19:30:33 +0000
committerMatt Wilson <msw@redhat.com>1999-09-20 19:30:33 +0000
commit4034b47ea08ef4888c09769b0fd265940f87b97c (patch)
tree57fb8ca26083502a26e767e5210cd5a7719d326d /iw/fdisk.py
parentfd3c67830910dc379f7b89136db236bbb375f1a0 (diff)
downloadanaconda-4034b47ea08ef4888c09769b0fd265940f87b97c.tar.gz
anaconda-4034b47ea08ef4888c09769b0fd265940f87b97c.tar.xz
anaconda-4034b47ea08ef4888c09769b0fd265940f87b97c.zip
path to fdisk
Diffstat (limited to 'iw/fdisk.py')
-rw-r--r--iw/fdisk.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/iw/fdisk.py b/iw/fdisk.py
index b59100cef..f849335a9 100644
--- a/iw/fdisk.py
+++ b/iw/fdisk.py
@@ -24,7 +24,11 @@ class FDiskWindow (InstallWindow):
zvt = ZvtTerm (80, 24)
zvt.connect ("child_died", self.child_died, widget)
if zvt.forkpty() == 0:
- execvp ("/sbin/fdisk", ("/sbin/fdisk", "/dev/%s" % (drive,)))
+ if os.access ("/usr/sbin/fdisk", os.X_OK):
+ path = "/usr/sbin/fdisk"
+ else:
+ path = "/sbin/fdisk"
+ execvp (path, ("fdisk", "/dev/%s" % (drive,)))
zvt.show ()
self.windowContainer.remove (self.buttonBox)