]> xenbits.xensource.com Git - people/vhanquez/xen-unstable.git/commitdiff
libxl: Warn that /usr/bin/pygrub is deprecated
authorGeorge Dunlap <george.dunlap@eu.citrix.com>
Tue, 15 May 2012 15:28:11 +0000 (16:28 +0100)
committerGeorge Dunlap <george.dunlap@eu.citrix.com>
Tue, 15 May 2012 15:28:11 +0000 (16:28 +0100)
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>
tools/libxl/libxl_bootloader.c

index d695ae0d27fa40de00bdd0530ad67b831382b2b9..81e9eab4cc5511dfd301e9ca0d541af731f86b10 100644 (file)
@@ -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;