builder/amazon/chroot: use the attached device path

This commit is contained in:
Mitchell Hashimoto 2013-07-30 11:41:16 -07:00
parent 713f466670
commit 710b6a41ec
2 changed files with 5 additions and 1 deletions

View File

@ -63,6 +63,10 @@ func (b *Builder) Prepare(raws ...interface{}) error {
b.config.DevicePath = "/dev/sdh"
}
if b.config.AttachedDevicePath == "" {
b.config.AttachedDevicePath = "/dev/xvdh"
}
if b.config.MountCommand == "" {
b.config.MountCommand = "mount"
}

View File

@ -69,7 +69,7 @@ func (s *StepAttachVolume) Run(state map[string]interface{}) multistep.StepActio
return multistep.ActionHalt
}
state["device"] = device
state["device"] = config.AttachedDevicePath
return multistep.ActionContinue
}