Commit 17f1ee3e authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

builder/amazon/chroot: quote commands and pass through a shell [GH-581]

parent 02984bdb
......@@ -14,6 +14,7 @@ IMPROVEMENTS:
BUG FIXES:
* builder/amazon/chroot: Chroot commands work with shell provisioners. [GH-581]
* builder/vmware: VMX modifications are now case-insensitive. [GH-608]
## 0.3.11 (November 4, 2013)
......
......@@ -21,7 +21,7 @@ type Communicator struct {
func (c *Communicator) Start(cmd *packer.RemoteCmd) error {
command, err := c.CmdWrapper(
fmt.Sprintf("chroot %s %s", c.Chroot, cmd.Command))
fmt.Sprintf("chroot %s /bin/sh -c \"%s\"", c.Chroot, cmd.Command))
if err != nil {
return err
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment