vmbuilder: --execscript in current directory is not found
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
vm-builder (Ubuntu) |
Confirmed
|
Medium
|
Unassigned |
Bug Description
This problem happens with the vmbuilder on trunk.
When running vmbuilder I passed in an option like
--execscript setup-karmic-server
where "setup-
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-
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)/
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-
Ec2Availability
Ec2InstanceType: c1.medium
Ec2Kernel: aki-5f15f636
Ec2Ramdisk: ari-0915f660
Package: python-vm-builder 0.11.3-0ubuntu1
PackageArchitec
ProcEnviron:
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcVersionSign
SourcePackage: vm-builder
Tags: ec2-images
Uname: Linux 2.6.31-302-ec2 i686
Changed in vm-builder (Ubuntu): | |
importance: | Undecided → Medium |
status: | New → Confirmed |
tags: | removed: ec2-images |