builder/amazon/chroot: /bin/sh
This commit is contained in:
parent
462e48cac4
commit
bec7b26836
|
@ -75,7 +75,7 @@ func (s *StepMountDevice) Cleanup(state map[string]interface{}) {
|
||||||
ui.Say("Unmounting the root device...")
|
ui.Say("Unmounting the root device...")
|
||||||
|
|
||||||
unmountCommand := fmt.Sprintf("%s %s", config.UnmountCommand, s.mountPath)
|
unmountCommand := fmt.Sprintf("%s %s", config.UnmountCommand, s.mountPath)
|
||||||
cmd := exec.Command("bin/sh", "-c", unmountCommand)
|
cmd := exec.Command("/bin/sh", "-c", unmountCommand)
|
||||||
if err := cmd.Run(); err != nil {
|
if err := cmd.Run(); err != nil {
|
||||||
ui.Error(fmt.Sprintf(
|
ui.Error(fmt.Sprintf(
|
||||||
"Error unmounting root device: %s", err))
|
"Error unmounting root device: %s", err))
|
||||||
|
|
|
@ -69,7 +69,7 @@ func (s *StepMountExtra) Cleanup(state map[string]interface{}) {
|
||||||
|
|
||||||
for _, path := range s.mounts {
|
for _, path := range s.mounts {
|
||||||
unmountCommand := fmt.Sprintf("%s %s", config.UnmountCommand, path)
|
unmountCommand := fmt.Sprintf("%s %s", config.UnmountCommand, path)
|
||||||
cmd := exec.Command("bin/sh", "-c", unmountCommand)
|
cmd := exec.Command("/bin/sh", "-c", unmountCommand)
|
||||||
if err := cmd.Run(); err != nil {
|
if err := cmd.Run(); err != nil {
|
||||||
ui.Error(fmt.Sprintf(
|
ui.Error(fmt.Sprintf(
|
||||||
"Error unmounting root device: %s", err))
|
"Error unmounting root device: %s", err))
|
||||||
|
|
Loading…
Reference in New Issue