From: George Dunlap Date: Tue, 15 May 2012 15:28:11 +0000 (+0100) Subject: libxl: Warn that /usr/bin/pygrub is deprecated X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~8460 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=c31d6a7ee2eaa4c224f718740267a8280648ebdf;p=xen.git libxl: Warn that /usr/bin/pygrub is deprecated Signed-off-by: George Dunlap Acked-by: Ian Campbell Committed-by: Ian Campbell --- diff --git a/tools/libxl/libxl_bootloader.c b/tools/libxl/libxl_bootloader.c index d695ae0d27..81e9eab4cc 100644 --- a/tools/libxl/libxl_bootloader.c +++ b/tools/libxl/libxl_bootloader.c @@ -338,6 +338,10 @@ void libxl__bootloader_run(libxl__egc *egc, libxl__bootloader_state *bl) 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;