From: Ian Campbell Subject: [PATCH 4 of 4] xl: do not run bootloader on restore Date: Fri, 03 Sep 2010 14:06:17 +0100 Message-ID: <772b3847d4bcc2a8e12c.1283519177@localhost.localdomain> 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.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com Cc: Brendan Cully List-Id: xen-devel@lists.xenproject.org # HG changeset patch # User Ian Campbell # Date 1283519045 -3600 # Node ID 772b3847d4bcc2a8e12cd7d022d76528b816c702 # Parent 684cfeffdb1b4bacd736bc05ae26211cb91833df xl: do not run bootloader on restore. Signed-off-by: Ian Campbell diff -r 684cfeffdb1b -r 772b3847d4bc tools/libxl/xl_cmdimpl.c --- a/tools/libxl/xl_cmdimpl.c Fri Sep 03 14:03:53 2010 +0100 +++ b/tools/libxl/xl_cmdimpl.c Fri Sep 03 14:04:05 2010 +0100 @@ -1411,10 +1411,12 @@ start: */ dom_info->console_autoconnect = 0; - ret = libxl_run_bootloader(&ctx, &d_config.b_info, d_config.num_disks > 0 ? &d_config.disks[0] : NULL, domid); - if (ret) { - fprintf(stderr, "failed to run bootloader: %d\n", ret); - goto error_out; + if (!restore_file) { + ret = libxl_run_bootloader(&ctx, &d_config.b_info, d_config.num_disks > 0 ? &d_config.disks[0] : NULL, domid); + if (ret) { + fprintf(stderr, "failed to run bootloader: %d\n", ret); + goto error_out; + } } if (!restore_file || !need_daemon) {