From: George Dunlap Subject: [PATCH 3 of 3] libxl: Warn that /usr/bin/pygrub is deprecated Date: Thu, 26 Apr 2012 15:26:14 +0100 Message-ID: <1e09187be21dc9e7e6aa.1335450374@kodo2> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xensource.com Cc: george.dunlap@eu.citrix.com List-Id: xen-devel@lists.xenproject.org Signed-off-by: George Dunlap diff -r 2783a97c5d5d -r 1e09187be21d tools/libxl/libxl_bootloader.c --- a/tools/libxl/libxl_bootloader.c Thu Apr 26 15:23:56 2012 +0100 +++ b/tools/libxl/libxl_bootloader.c Thu Apr 26 15:23:56 2012 +0100 @@ -15,6 +15,7 @@ #include "libxl_osdeps.h" /* must come before any other headers */ #include +#include #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 ) {