Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add plugin for linux livepatch #1672

Merged
merged 1 commit into from
Jul 3, 2021
Merged

Add plugin for linux livepatch #1672

merged 1 commit into from
Jul 3, 2021

Conversation

liu-song-6
Copy link

@liu-song-6 liu-song-6 commented Jun 21, 2021

This plugin gets "enabled" and "transition" for each livepatch
in /sys/kernel/livepatch/*.

Signed-off-by: Song Liu song@kernel.org

Description

Related Issue

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Chore (non-breaking change that does not add functionality or fix an issue)

Checklist:

  • I have read the CONTRIBUTING document.
  • I have run the pre-merge tests locally and they pass.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • All commits have been signed-off for the Developer Certificate of Origin.

@liu-song-6 liu-song-6 requested review from a team as code owners June 21, 2021 22:09
@tas50
Copy link
Contributor

tas50 commented Jun 21, 2021

This probably needs updates to work with Target Mode. @lamont-granquist would know best.

This plugin gets "enabled" and "transition" for each livepatch
in /sys/kernel/livepatch/*.

Signed-off-by: Song Liu <song@kernel.org>
@liu-song-6
Copy link
Author

This probably needs updates to work with Target Mode. @lamont-granquist would know best.

How does it work? I was mostly following lib/ohai/plugins/linux/block_device.rb.

@liu-song-6
Copy link
Author

I guess the error in "buildkite/chef-ohai-master-verify" is not from my changes?

@lamont-granquist
Copy link
Contributor

this should be fine for target mode, its using all the helpers for target mode like file_open

@tas50 tas50 merged commit 82ce763 into chef:master Jul 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants