diff options
author | Mike Fulbright <msf@redhat.com> | 2002-06-07 19:02:39 +0000 |
---|---|---|
committer | Mike Fulbright <msf@redhat.com> | 2002-06-07 19:02:39 +0000 |
commit | 9bcbf1eb1dbc78eb82f68bec3cbf3620dd1c855f (patch) | |
tree | eaf5fdce61f1279b1b537f30d95baf573a77d9ae /lvm.py | |
parent | 52f280c96beb7220b2e9a164b01daccb928ddf22 (diff) | |
download | anaconda-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.py | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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, |