Public bug reported:

This problem happens with the vmbuilder on trunk.

When running vmbuilder I passed in an option like

  --execscript setup-karmic-server

where "setup-karmic-server" was an executable file in my current
directory.

vmbuilder output the following messages which give a warm fuzzy:

2009-11-23 04:43:15,002 DEBUG   : Checking if --exec PATH exists: 
setup-karmic-server
2009-11-23 04:43:15,002 DEBUG   : Checking permissions of --exec PATH: 
setup-karmic-server

It proceeded to build the entire image, then tried to run my script.  At
this point, it died with the error:

  Couldn't find the program 'setup-karmic-server' on your system

If it's really checking to make sure that the script exists and is
executable it might also check to make sure that the script is in the
path, or add the current working directory to the path.

The workaround is to specify a full path like

  --execscript $(pwd)/setup-karmic-server

but this was an annoying thing to have to run into and to run again, so
it would be nice to save others the hassle.

See also related bug 292733.

ProblemType: Bug
Architecture: i386
Date: Mon Nov 23 05:03:36 2009
DistroRelease: Ubuntu 9.10
Ec2AMI: ami-1515f67c
Ec2AMIManifest: 
ubuntu-images-us/ubuntu-karmic-9.10-i386-server-20091027.1.manifest.xml
Ec2AvailabilityZone: us-east-1a
Ec2InstanceType: c1.medium
Ec2Kernel: aki-5f15f636
Ec2Ramdisk: ari-0915f660
Package: python-vm-builder 0.11.3-0ubuntu1
PackageArchitecture: all
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: User Name 2.6.31-302.7-ec2
SourcePackage: vm-builder
Tags: ec2-images
Uname: Linux 2.6.31-302-ec2 i686

** Affects: vm-builder (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: apport-bug ec2-images i386

-- 
vmbuilder: --execscript in current directory is not found
https://bugs.launchpad.net/bugs/486955
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to vm-builder in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to