kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] kvm tools: Link ld.so.conf to the file on the host
@ 2011-12-06 13:01 Sasha Levin
  2011-12-06 13:24 ` Pekka Enberg
  0 siblings, 1 reply; 3+ messages in thread
From: Sasha Levin @ 2011-12-06 13:01 UTC (permalink / raw)
  To: penberg; +Cc: mingo, gorcunov, asias.hejun, kvm, Sasha Levin

This enables the custom rootfs to run executables which have dylibs located
in non standard paths by taking these settings from the host.

Signed-off-by: Sasha Levin <levinsasha928@gmail.com>
---
 tools/kvm/builtin-setup.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/tools/kvm/builtin-setup.c b/tools/kvm/builtin-setup.c
index fb8a1b3..ecdf76b 100644
--- a/tools/kvm/builtin-setup.c
+++ b/tools/kvm/builtin-setup.c
@@ -120,6 +120,7 @@ static const char *guestfs_symlinks[] = {
 	"/lib64",
 	"/sbin",
 	"/usr",
+	"/etc/ld.so.conf",
 };
 
 static int copy_init(const char *guestfs_name)
-- 
1.7.8


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] kvm tools: Link ld.so.conf to the file on the host
  2011-12-06 13:01 [PATCH] kvm tools: Link ld.so.conf to the file on the host Sasha Levin
@ 2011-12-06 13:24 ` Pekka Enberg
  2011-12-06 13:37   ` Sasha Levin
  0 siblings, 1 reply; 3+ messages in thread
From: Pekka Enberg @ 2011-12-06 13:24 UTC (permalink / raw)
  To: Sasha Levin; +Cc: mingo, gorcunov, asias.hejun, kvm

On Tue, 6 Dec 2011, Sasha Levin wrote:
> This enables the custom rootfs to run executables which have dylibs located
> in non standard paths by taking these settings from the host.
>
> Signed-off-by: Sasha Levin <levinsasha928@gmail.com>
> ---
> tools/kvm/builtin-setup.c |    1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/tools/kvm/builtin-setup.c b/tools/kvm/builtin-setup.c
> index fb8a1b3..ecdf76b 100644
> --- a/tools/kvm/builtin-setup.c
> +++ b/tools/kvm/builtin-setup.c
> @@ -120,6 +120,7 @@ static const char *guestfs_symlinks[] = {
> 	"/lib64",
> 	"/sbin",
> 	"/usr",
> +	"/etc/ld.so.conf",
> };
>
> static int copy_init(const char *guestfs_name)

This doesn't fix the issue I have with

     kvm tools: Split custom rootfs init into two stages

i.e. I still see:

   ./kvm run tests/pit/tick.bin
     Fatal: Failed linking stage 2 of init.
   make: *** [check] Error 128

 			Pekka

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] kvm tools: Link ld.so.conf to the file on the host
  2011-12-06 13:24 ` Pekka Enberg
@ 2011-12-06 13:37   ` Sasha Levin
  0 siblings, 0 replies; 3+ messages in thread
From: Sasha Levin @ 2011-12-06 13:37 UTC (permalink / raw)
  To: Pekka Enberg; +Cc: mingo, gorcunov, asias.hejun, kvm

On Tue, 2011-12-06 at 15:24 +0200, Pekka Enberg wrote:
> On Tue, 6 Dec 2011, Sasha Levin wrote:
> > This enables the custom rootfs to run executables which have dylibs located
> > in non standard paths by taking these settings from the host.
> >
> > Signed-off-by: Sasha Levin <levinsasha928@gmail.com>
> > ---
> > tools/kvm/builtin-setup.c |    1 +
> > 1 files changed, 1 insertions(+), 0 deletions(-)
> >
> > diff --git a/tools/kvm/builtin-setup.c b/tools/kvm/builtin-setup.c
> > index fb8a1b3..ecdf76b 100644
> > --- a/tools/kvm/builtin-setup.c
> > +++ b/tools/kvm/builtin-setup.c
> > @@ -120,6 +120,7 @@ static const char *guestfs_symlinks[] = {
> > 	"/lib64",
> > 	"/sbin",
> > 	"/usr",
> > +	"/etc/ld.so.conf",
> > };
> >
> > static int copy_init(const char *guestfs_name)
> 
> This doesn't fix the issue I have with
> 
>      kvm tools: Split custom rootfs init into two stages
> 
> i.e. I still see:
> 
>    ./kvm run tests/pit/tick.bin
>      Fatal: Failed linking stage 2 of init.
>    make: *** [check] Error 128

Thats unrelated, this patch is supposed to get gnome apps to work in the
custom rootfs :)

-- 

Sasha.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-12-06 13:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-06 13:01 [PATCH] kvm tools: Link ld.so.conf to the file on the host Sasha Levin
2011-12-06 13:24 ` Pekka Enberg
2011-12-06 13:37   ` Sasha Levin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).