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