diff options
author | Tim Smith <tsmith@chef.io> | 2018-06-11 13:55:06 -0700 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2018-06-11 13:55:06 -0700 |
commit | 89fa6a74b020d3e982c1221f07b7212bb20280ce (patch) | |
tree | a3decd13e2cf16b9ab6256d717e081e1ca9780b1 | |
parent | 6e83d7ba4106414aa60114f7184bdf1c39357232 (diff) | |
download | chef-89fa6a74b020d3e982c1221f07b7212bb20280ce.tar.gz |
Make it more clear that we load first on :install
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r-- | lib/chef/resource/kernel_module.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/chef/resource/kernel_module.rb b/lib/chef/resource/kernel_module.rb index 55ce9d080b..bea56dedc2 100644 --- a/lib/chef/resource/kernel_module.rb +++ b/lib/chef/resource/kernel_module.rb @@ -32,6 +32,9 @@ class Chef action :install do description "Load kernel module, and ensure it loads on reboot" + # load the module first before installing + new_resource.run_action(:load) + directory new_resource.load_dir do recursive true end @@ -45,8 +48,6 @@ class Chef command initramfs_command action :nothing end - - new_resource.run_action(:load) end action :uninstall do |