Skip to content

Commit

Permalink
Back out "Fix fbkpatch override reference script too early"
Browse files Browse the repository at this point in the history
Summary:
Original commit changeset: 0dce8b171ed8

Original Phabricator Diff: D67226415

Revert b/c the fb_kpatch is opensource.

Differential Revision: D67288917

fbshipit-source-id: 4666206a3bb093e51d79cde0c534ff9b1e485326
  • Loading branch information
mkutsevol authored and facebook-github-bot committed Dec 17, 2024
1 parent f3626a5 commit e3cb27e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 119 deletions.
105 changes: 0 additions & 105 deletions cookbooks/fb_kpatch/files/default/fbkpatch

This file was deleted.

19 changes: 5 additions & 14 deletions cookbooks/fb_kpatch/recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@
action :upgrade
end

service 'kpatch' do
only_if { node['fb_kpatch']['enable'] }
action [:enable, :start]
end

service 'disable kpatch' do
not_if { node['fb_kpatch']['enable'] }
service_name 'kpatch'
Expand All @@ -42,15 +47,6 @@
},
})
end

# Script to log kpatch results to scribe
cookbook_file '/usr/local/bin/fbkpatch' do
source 'fbkpatch'
owner node.root_user
group node.root_group
mode '0755'
end

fb_systemd_override 'fbkpatch' do
unit_name 'kpatch.service'
content({
Expand All @@ -61,8 +57,3 @@
},
})
end

service 'kpatch' do
only_if { node['fb_kpatch']['enable'] }
action [:enable, :start]
end

0 comments on commit e3cb27e

Please sign in to comment.