Richard W.M. Jones
2017-Apr-27 14:43 UTC
Re: [Libguestfs] [PATCH] appliance: reorder the steps to search for appliance
On Thu, Apr 27, 2017 at 03:54:44PM +0300, Pavel Butsykin wrote: [...]> >(2) If the fixed appliance was located somewhere else, you could do: > > > > LIBGUESTFS_PATH=/path/to/somewhere/else:/usr/lib64/guestfs > > export LIBGUESTFS_PATH > > > >and then it would look for the fixed appliance in > >/path/to/somewhere/else and use it. If the fixed appliance exists > >there, then it would never check /usr/lib64/guestfs. > > It's a bit wrong, the first step is search supermin.d in all specified > directories: > /* Step (1). */ > r = find_path (g, contains_supermin_appliance, NULL, &supermin_path); > if (r == -1) > return -1; > > if (r == 1) > /* Step (2): build supermin appliance. */ > return build_supermin_appliance (g, supermin_path, > kernel, initrd, appliance);OK, I see, that is indeed a bug. Can you suggest a patch which fixes this so that directories are searched correctly? However I still think that putting all of the appliances into a single directory and expecting libguestfs to know which one you meant it to choose first is the wrong idea. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into KVM guests. http://libguestfs.org/virt-v2v
Reasonably Related Threads
- Re: [PATCH] appliance: reorder the steps to search for appliance
- Re: [PATCH] appliance: reorder the steps to search for appliance
- [PATCH 3/4] appliance: Move code for creating supermin appliance directory to tmpdirs.c.
- Re: [PATCH] appliance: reorder the steps to search for appliance
- Re: [PATCH v2 1/2] appliance: search all types of appliances for each path separately