From: George Dunlap Subject: [PATCH 3 of 3 v3] libxl: Warn that /usr/bin/pygrub is deprecated Date: Tue, 15 May 2012 15:22:56 +0100 Message-ID: <804eb2962984402ae58f.1337091776@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 v2: Use strcmp rather than strncmp. Signed-off-by: George Dunlap Acked-by: Ian Campbell diff -r 9ebf2c1292c3 -r 804eb2962984 tools/libxl/libxl_bootloader.c --- a/tools/libxl/libxl_bootloader.c Tue May 15 15:13:45 2012 +0100 +++ b/tools/libxl/libxl_bootloader.c Tue May 15 15:13:45 2012 +0100 @@ -338,6 +338,10 @@ void libxl__bootloader_run(libxl__egc *e LOG(DEBUG, "Config bootloader value: %s", info->u.pv.bootloader); + if ( !strcmp(info->u.pv.bootloader, "/usr/bin/pygrub") ) + LOG(WARN, "bootloader='/usr/bin/pygrub' is deprecated; use " \ + "bootloader='pygrub' instead"); + /* If the full path is not specified, check in the libexec path */ if ( info->u.pv.bootloader[0] != '/' ) { char *bootloader;