Commit df27c63
Fix kernel-devel package name for rhel8
When using `wget`, the package name must contain the architecture too.
By redefining the `kernel_source_package_version` we're avoiding to `chomp` the architecture from kernel version.
Then, use `node['kernel']['machine']` rather than `uname -m`.
### Tests
Verified that `dnf install` is working on both the cases when passing architecture.
### References
* https://github.com/chef/ohai/blob/17-stable/lib/ohai/plugins/kernel.rb#L34
Signed-off-by: Enrico Usai <usai@amazon.com>1 parent 024a18c commit df27c63
File tree
1 file changed
+6
-3
lines changed- cookbooks/aws-parallelcluster-platform/resources/install_packages
1 file changed
+6
-3
lines changedLines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | 31 | | |
33 | 32 | | |
34 | | - | |
35 | | - | |
| 33 | + | |
| 34 | + | |
36 | 35 | | |
37 | 36 | | |
38 | 37 | | |
39 | 38 | | |
40 | 39 | | |
41 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
42 | 45 | | |
43 | 46 | | |
44 | 47 | | |
| |||
0 commit comments