ia64/xen-unstable

changeset 12846:531c67ed64f4

Do an explicit check for bootloader path existence prior
to the one for executable permissions. Also print out the path being
tested.

Signed-off-by: Daniel P, Berrange <berrange@redhat.com>
author Ewan Mellor <ewan@xensource.com>
date Thu Dec 07 12:11:40 2006 +0000 (2006-12-07)
parents c287052a0a65
children 78528a88d082
files tools/python/xen/xm/create.py
line diff
     1.1 --- a/tools/python/xen/xm/create.py	Thu Dec 07 12:07:53 2006 +0000
     1.2 +++ b/tools/python/xen/xm/create.py	Thu Dec 07 12:11:40 2006 +0000
     1.3 @@ -704,8 +704,10 @@ def configure_hvm(config_image, vals):
     1.4      config_image.append(['vncpasswd', vals.vncpasswd])
     1.5  
     1.6  def run_bootloader(vals, config_image):
     1.7 +    if not os.access(vals.bootloader, os.F_OK):
     1.8 +        err("Bootloader '%s' does not exist" % vals.bootloader)
     1.9      if not os.access(vals.bootloader, os.X_OK):
    1.10 -        err("Bootloader isn't executable")
    1.11 +        err("Bootloader '%s' isn't executable" % vals.bootloader)
    1.12      if len(vals.disk) < 1:
    1.13          err("No disks configured and boot loader requested")
    1.14      (uname, dev, mode, backend) = vals.disk[0]