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

Use kernel release for package name on saucy and newer #35

Merged
merged 3 commits into from Jan 2, 2014

Conversation

jayofdoom
Copy link
Contributor

  • Use output of uname -r directly to determine proper kernel naming on saucy and newer
  • We can't do this on precise (or possibly on other older versions of ubuntu) because some of their kernels return the type in the release (i.e. 3.4.5-generic instead of 3.4.5).

@jayofdoom
Copy link
Contributor Author

#33 implements this same thing without the attribute option. I prefer #33, but this allows for less risk of breaking existing users.

- Optionally, allow a cookbook user to pick the older method of finding
  a kernel, in case the new way breaks compatibilty for them
- Also for new method, use ohai's provided kernel release rather than
  shelling out to uname
@jayofdoom
Copy link
Contributor Author

New code path had same problem I noted in #33 -- I was no longer checking to see if the package existed before attempting to install it. This should fix it.

@jayofdoom
Copy link
Contributor Author

@bflad @trintronix This should fix the issues presented in the other PR and preserve backwards compatibility.

@bflad
Copy link
Contributor

bflad commented Jan 2, 2014

Awesome! LGTM. Getting this in there now.

bflad added a commit that referenced this pull request Jan 2, 2014
Use kernel release for package name on saucy and newer
@bflad bflad merged commit 034dbfe into sous-chefs:master Jan 2, 2014
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.

None yet

2 participants