[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] libxl: fix paths for non-standard installations
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1273256200 -3600 # Node ID a97ef0eb0b9d520b8b6b97d240771cc27de978e3 # Parent 56d52312c5cd1c885eb1156ca39f8447d3d167dd libxl: fix paths for non-standard installations Attached patch removes hardcoded pathes and corrects wrong path to qemu-dm. Signed-off-by: Christoph Egger <Christoph.Egger@xxxxxxx> Acked-by: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx> --- tools/libxl/libxl.c | 7 +++++-- tools/libxl/xl_cmdimpl.c | 4 ++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff -r 56d52312c5cd -r a97ef0eb0b9d tools/libxl/libxl.c --- a/tools/libxl/libxl.c Fri May 07 19:08:55 2010 +0100 +++ b/tools/libxl/libxl.c Fri May 07 19:16:40 2010 +0100 @@ -1318,7 +1318,10 @@ int libxl_device_disk_add(struct libxl_c null_r = open("/dev/null", O_RDONLY); null_w = open("/dev/null", O_WRONLY); - libxl_exec(null_r, p[1], null_w, "/usr/sbin/tapdisk2", args); + libxl_exec(null_r, p[1], null_w, + libxl_abs_path(ctx, "tapdisk2", + libxl_sbindir_path()), + args); XL_LOG(ctx, XL_LOG_ERROR, "Error execing tapdisk2"); } close(p[1]); @@ -1758,7 +1761,7 @@ static int libxl_build_xenpv_qemu_args(s } info->domid = vfb->domid; info->dom_name = libxl_domid_to_name(ctx, vfb->domid); - info->device_model = libxl_abs_path(ctx, "qemu-dm", libxl_private_bindir_path()); + info->device_model = libxl_abs_path(ctx, "qemu-dm", libxl_libexec_path()); info->type = XENPV; return 0; } diff -r 56d52312c5cd -r a97ef0eb0b9d tools/libxl/xl_cmdimpl.c --- a/tools/libxl/xl_cmdimpl.c Fri May 07 19:08:55 2010 +0100 +++ b/tools/libxl/xl_cmdimpl.c Fri May 07 19:16:40 2010 +0100 @@ -178,7 +178,7 @@ static void init_build_info(libxl_domain if (c_info->hvm) { b_info->shadow_memkb = libxl_get_required_shadow_memory(b_info->max_memkb, b_info->max_vcpus); b_info->video_memkb = 8 * 1024; - b_info->kernel = "/usr/lib/xen/boot/hvmloader"; + b_info->kernel = "hvmloader"; b_info->hvm = 1; b_info->u.hvm.pae = 1; b_info->u.hvm.apic = 1; @@ -201,7 +201,7 @@ static void init_dm_info(libxl_device_mo } dm_info->dom_name = c_info->name; - dm_info->device_model = "/usr/lib/xen/bin/qemu-dm"; + dm_info->device_model = "qemu-dm"; dm_info->videoram = b_info->video_memkb / 1024; dm_info->apic = b_info->u.hvm.apic; _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |