diff options
author | Richard Jones <rjones@redhat.com> | 2010-03-26 10:10:16 +0000 |
---|---|---|
committer | Richard Jones <rjones@redhat.com> | 2010-03-26 13:36:30 +0000 |
commit | 9e0b31a2af26b8d58a44dd80993a5e73d4942307 (patch) | |
tree | 366ae63d35d8d233810434ec12b5b325485d4061 /src/generator.ml | |
parent | 57c143da4d9b9e75e6da83ef3b8e8c0979c6f0f6 (diff) | |
download | libguestfs-9e0b31a2af26b8d58a44dd80993a5e73d4942307.tar.gz libguestfs-9e0b31a2af26b8d58a44dd80993a5e73d4942307.tar.xz libguestfs-9e0b31a2af26b8d58a44dd80993a5e73d4942307.zip |
appliance: Set $PATH instead of hard-coding paths to binaries everywhere.
Change the appliance so PATH includes common directories. Thus
we don't need to hard-code paths to binaries (eg. "/sbin/fdisk")
everywhere.
Diffstat (limited to 'src/generator.ml')
-rwxr-xr-x | src/generator.ml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/generator.ml b/src/generator.ml index b04bbe03..e9965212 100755 --- a/src/generator.ml +++ b/src/generator.ml @@ -6145,7 +6145,7 @@ and generate_daemon_actions () = pr " ret->guestfs_int_lvm_%s_list_val = NULL;\n" typ; pr "\n"; pr " r = command (&out, &err,\n"; - pr " \"/sbin/lvm\", \"%ss\",\n" typ; + pr " \"lvm\", \"%ss\",\n" typ; pr " \"-o\", lvm_%s_cols, \"--unbuffered\", \"--noheadings\",\n" typ; pr " \"--nosuffix\", \"--separator\", \",\", \"--units\", \"b\", NULL);\n"; pr " if (r == -1) {\n"; |