kvm tools: Link ld.so.conf to the file on the host
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
@@ -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
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.
Signed-off-by Sasha Levin <[email protected]>---
tools/kvm/builtin-setup.c| 1 +1 files changed, 1 insertions(+), 0 deletions(-)tools/kvm/builtin-setup.c +0
-0
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
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.
Signed-off-by Sasha Levin <[email protected]>---
tools/kvm/builtin-setup.c| 1 +1 files changed, 1 insertions(+), 0 deletions(-)tools/kvm/builtin-setup.c +0
-0tools/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.