summaryrefslogtreecommitdiffstats
path: root/lvm.py
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2002-06-07 19:02:39 +0000
committerMike Fulbright <msf@redhat.com>2002-06-07 19:02:39 +0000
commit9bcbf1eb1dbc78eb82f68bec3cbf3620dd1c855f (patch)
treeeaf5fdce61f1279b1b537f30d95baf573a77d9ae /lvm.py
parent52f280c96beb7220b2e9a164b01daccb928ddf22 (diff)
downloadanaconda-9bcbf1eb1dbc78eb82f68bec3cbf3620dd1c855f.tar.gz
anaconda-9bcbf1eb1dbc78eb82f68bec3cbf3620dd1c855f.tar.xz
anaconda-9bcbf1eb1dbc78eb82f68bec3cbf3620dd1c855f.zip
rely on search path to find binaries
Diffstat (limited to 'lvm.py')
-rw-r--r--lvm.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/lvm.py b/lvm.py
index 18d9e12d1..008bf995f 100644
--- a/lvm.py
+++ b/lvm.py
@@ -20,7 +20,7 @@ output = "/tmp/lvmout"
def vgscan():
"""Runs vgscan."""
- rc = iutil.execWithRedirect("/usr/sbin/vgscan",
+ rc = iutil.execWithRedirect("vgscan",
["vgscan", "-v"],
stdout = output,
stderr = output,
@@ -34,7 +34,7 @@ def vgactivate(volgroup = None):
volgroup - optional single volume group to activate
"""
- args = ["/usr/sbin/vgchange", "-ay"]
+ args = ["vgchange", "-ay"]
if volgroup:
args.append(volgroup)
rc = iutil.execWithRedirect(args[0], args,
@@ -50,7 +50,7 @@ def vgdeactivate(volgroup = None):
volgroup - optional single volume group to deactivate
"""
- args = ["/usr/sbin/vgchange", "-an"]
+ args = ["vgchange", "-an"]
if volgroup:
args.append(volgroup)
rc = iutil.execWithRedirect(args[0], args,
@@ -68,7 +68,7 @@ def lvremove(lvname, vgname):
vgname - name of volume group lv is in.
"""
- args = ["/usr/sbin/lvremove", "-f"]
+ args = ["lvremove", "-f"]
dev = "/dev/%s/%s" %(vgname, lvname)
args.append(dev)
@@ -93,7 +93,7 @@ def vgremove(vgname):
except:
pass
- args = ["/usr/sbin/vgremove", vgname]
+ args = ["vgremove", vgname]
rc = iutil.execWithRedirect(args[0], args,
stdout = output,