On Mon, Jul 11, 2011 at 06:28:13PM +0200, Hilko Bengen wrote:
* Richard W.M. Jones:
> Yeah, it'd be nice to work out how to do this as non-root.
One can achieve this by using a configuration file that specifies
state and cache directories.
Does one need to pass extra command line arguments?
For the febootstrap yum/rpm backend we have an extra arg that can be
passed through, allowing a local configuration file to be specified
(yum doesn't need this to do local caching, but it's still extremely
useful for other things).
libguestfs ./configure --with-febootstrap-yum-config:
http://git.annexia.org/?p=libguestfs.git;a=blob;f=configure.ac;h=96d95f95...
febootstrap --yum-config:
http://git.annexia.org/?p=febootstrap.git;a=blob;f=febootstrap_cmdline.ml...
We could do the same for apt/dpkg.
Rich.
--
Richard Jones, Virtualization Group, Red Hat
http://people.redhat.com/~rjones
libguestfs lets you edit virtual machines. Supports shell scripting,
bindings from many languages.
http://libguestfs.org