check container os, not host os, when creating container dir default
This commit is contained in:
parent
0295ea8d73
commit
b6f3742425
|
@ -125,7 +125,7 @@ func NewConfig(raws ...interface{}) (*Config, []string, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if c.ContainerDir == "" {
|
if c.ContainerDir == "" {
|
||||||
if runtime.GOOS == "windows" {
|
if c.WindowsContainer {
|
||||||
c.ContainerDir = "c:/packer-files"
|
c.ContainerDir = "c:/packer-files"
|
||||||
} else {
|
} else {
|
||||||
c.ContainerDir = "/packer-files"
|
c.ContainerDir = "/packer-files"
|
||||||
|
|
Loading…
Reference in New Issue