[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 3 of 3 RESEND] libxl: Warn that /usr/bin/pygrub is deprecated
Signed-off-by: George Dunlap <george.dunlap@xxxxxxxxxxxxx> diff -r 52f45b258ccc -r 794778a6e9fa tools/libxl/libxl_bootloader.c --- a/tools/libxl/libxl_bootloader.c Wed May 09 11:39:43 2012 +0100 +++ b/tools/libxl/libxl_bootloader.c Wed May 09 11:42:19 2012 +0100 @@ -15,6 +15,7 @@ #include "libxl_osdeps.h" /* must come before any other headers */ #include <termios.h> +#include <string.h> #include "libxl_internal.h" @@ -398,6 +399,11 @@ int libxl_run_bootloader(libxl_ctx *ctx, goto out_close; } + if ( !strncmp(info->u.pv.bootloader, "/usr/bin/pygrub", 20) ) + LIBXL__LOG(ctx, LIBXL__LOG_WARNING, + "WARNING: bootloader='/usr/bin/pygrub' " \ + "is deprecated; use bootloader='pygrub' instead"); + bootloader = libxl__abs_path(gc, info->u.pv.bootloader, libxl__libexec_path()); if ( bootloader == NULL ) { _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |