Skip to contentSkip to conversation

kvm tools: Link ld.so.conf to the file on the host

PATCH In review Sasha Levin 2 participants 3 messages Dec 6, 2011 KVM

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kvm tools: Link ld.so.conf to the file on the host

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

---
 tools/kvm/builtin-setup.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
tools/kvm/builtin-setup.c +1 -0
index fb8a1b3..ecdf76b 100644
@@ -120,6 +120,7 @@ static const char *guestfs_symlinks[] = {
 	"/lib64",
 	"/sbin",
 	"/usr",
+	"/etc/ld.so.conf",
 };
 
 static int copy_init(const char *guestfs_name)
Signature · 1 line
1.7.8
#1 lore raw
Quoted 13 lines · 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.

---
tools/kvm/builtin-setup.c | 1 +

1 files changed, 1 insertions(+), 0 deletions(-)
tools/kvm/builtin-setup.c +0 -0
index fb8a1b3..ecdf76b 100644

tools/kvm/builtin-setup.c static const char *guestfs_symlinks[] = { · line 126

Quoted 7 lines
tools/kvm/builtin-setup.c +1 -0
@@ -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

#2 lore raw
Quoted 24 lines · Pekka Enberg
Quoted 13 lines · 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.

---
tools/kvm/builtin-setup.c | 1 +

1 files changed, 1 insertions(+), 0 deletions(-)
tools/kvm/builtin-setup.c +0 -0
index fb8a1b3..ecdf76b 100644

tools/kvm/builtin-setup.c static const char *guestfs_symlinks[] = { · line 126

Quoted 7 lines
tools/kvm/builtin-setup.c +1 -0
@@ -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

Quoted 7 lines

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 :)

Signature · 1 line
Sasha.