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

pull/610/merge
Mitchell Hashimoto 13 years ago
parent 0992c7bd19
commit e4b719a286

@ -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
}

Loading…
Cancel
Save