summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-06-11 13:55:06 -0700
committerTim Smith <tsmith@chef.io>2018-06-11 13:55:06 -0700
commit89fa6a74b020d3e982c1221f07b7212bb20280ce (patch)
treea3decd13e2cf16b9ab6256d717e081e1ca9780b1
parent6e83d7ba4106414aa60114f7184bdf1c39357232 (diff)
downloadchef-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.rb5
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