mirror of
https://github.com/hashicorp/packer.git
synced 2026-05-28 04:35:38 -04:00
check container os, not host os, when creating container dir default
This commit is contained in:
parent
0295ea8d73
commit
b6f3742425
1 changed files with 1 additions and 1 deletions
|
|
@ -125,7 +125,7 @@ func NewConfig(raws ...interface{}) (*Config, []string, error) {
|
|||
}
|
||||
|
||||
if c.ContainerDir == "" {
|
||||
if runtime.GOOS == "windows" {
|
||||
if c.WindowsContainer {
|
||||
c.ContainerDir = "c:/packer-files"
|
||||
} else {
|
||||
c.ContainerDir = "/packer-files"
|
||||
|
|
|
|||
Loading…
Reference in a new issue