From c893e7a86e64588cc04b4f49c54dc24204739ede Mon Sep 17 00:00:00 2001 From: Maksym Kutsevol Date: Thu, 17 Oct 2024 09:36:11 -0700 Subject: [PATCH] Run fbkpatch instead of kpatch Summary: Subj. Differential Revision: D64405306 fbshipit-source-id: c4efaab9aa59e89e700383246a53730234a1c9f4 --- cookbooks/fb_kpatch/recipes/default.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/cookbooks/fb_kpatch/recipes/default.rb b/cookbooks/fb_kpatch/recipes/default.rb index 05d087dd..ba31c35a 100644 --- a/cookbooks/fb_kpatch/recipes/default.rb +++ b/cookbooks/fb_kpatch/recipes/default.rb @@ -47,3 +47,13 @@ }, }) end +fb_systemd_override 'fbkpatch' do + unit_name 'kpatch.service' + content({ + 'Service' => { + # Empty record is required! It tells systemd to clean existing + # values, as it appends values from drop ins. + 'ExecStart' => ['', '/usr/local/bin/fbkpatch load --all'], + }, + }) +end