Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[macos-10.12] Allow Packer to pick up memory user var. #768

Merged
merged 1 commit into from
Apr 4, 2017

Conversation

fnichol
Copy link
Contributor

@fnichol fnichol commented Mar 12, 2017

I'm not 100% sure if this is an issue--it might need to be confirmed but I could not finish building this box without this fix…


For some reason with Pack 0.12.3, the current "memory" user variable
is not being picked up and a default value of 1024 is always being
used, leading to macOS 10.12 not being able to finish its installation.
For some reason, changing the user variable from "memory" to almost
anything else (in this case, "memsize") allows the user variable to be
picked up.

Note that this was observed with the vmware-iso builder and may be the
only affected one. I verified this behavior by running:

env PACKER_LOG=1 bundle exec bento build --only=vmware-iso --debug macos-10.12

For some reason with Pack 0.12.3, the current `"memory"` user variable
is not being picked up and a default value of `1024` is always being
used, leading to macOS 10.12 not being able to finish its installation.
For some reason, changing the user variable from `"memory"` to almost
anything else (in this case, `"memsize"`) allows the user variable to be
picked up.

Note that this was observed with the `vmware-iso` builder and may be the
only affected one. I verified this behavior by running:

```
env PACKER_LOG=1 bundle exec bento build --only=vmware-iso --debug macos-10.12
```

Signed-off-by: Fletcher Nichol <fnichol@nichol.ca>
@cheeseplus
Copy link
Contributor

This seems really weird but don't see any open issues on packer regarding it yet, will try to verify but should be safe enough for merge. Curious if it happens for other platforms too.

@cheeseplus
Copy link
Contributor

Going to just merge this one for now as I trust it enough to merge. I'll be testing OSX boxes on another pass and will verify then.

@cheeseplus cheeseplus merged commit f071730 into master Apr 4, 2017
@fnichol fnichol deleted the fnichol/macos-memory-user-var branch June 11, 2017 21:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants