aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxl/libxl_bootloader.c
diff options
context:
space:
mode:
authorGeorge Dunlap <george.dunlap@eu.citrix.com>2012-05-15 16:28:11 +0100
committerGeorge Dunlap <george.dunlap@eu.citrix.com>2012-05-15 16:28:11 +0100
commitc31d6a7ee2eaa4c224f718740267a8280648ebdf (patch)
treecd07adb5d08ec059a843e2677736ec442e8fc3db /tools/libxl/libxl_bootloader.c
parent10c88f1c18b7526d4e2f18d6245ebd8fd22aae3d (diff)
downloadxen-c31d6a7ee2eaa4c224f718740267a8280648ebdf.tar.gz
xen-c31d6a7ee2eaa4c224f718740267a8280648ebdf.tar.bz2
xen-c31d6a7ee2eaa4c224f718740267a8280648ebdf.zip
libxl: Warn that /usr/bin/pygrub is deprecated
Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com> Acked-by: Ian Campbell <ian.campbell@citrix.com> Committed-by: Ian Campbell <ian.campbell@citrix.com>
Diffstat (limited to 'tools/libxl/libxl_bootloader.c')
-rw-r--r--tools/libxl/libxl_bootloader.c4
1 files changed, 4 insertions, 0 deletions
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;