Commit 8d5f404f authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

builder/amazon/chroot: use the attached device path

parent 54d020b8
......@@ -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"
}
......
......@@ -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
}
......
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