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

Set a default value for setFirmwareClassPath in the worker config. #1170

Merged
merged 1 commit into from
Aug 11, 2024

Conversation

ybettan
Copy link
Collaborator

@ybettan ybettan commented Aug 11, 2024

When firmware is added to the driver-cotnainer there are 2 actions that were taken:

  1. Copy the firmware files onto the node at /var/lib/firmware
  2. Add /var/lib/firmware to /sys/module/firmware_class/parameters/path in order to update the kernel lookup directories for firmware files.

In order to make this feature configurable, we will allow the user to choose the path on the nodes to write the firmware files to.

In order to make it work with no additional changes, when firmware files are added to the driver-container, we added a default directory to add the firmware files to on the nodes.

To keep it simple, we will also always add this path to the kernel lookup directories.


Fixes #1169
/cc @yevgeny-shnaidman @TomerNewman

Copy link

openshift-ci bot commented Aug 11, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ybettan

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Copy link

netlify bot commented Aug 11, 2024

Deploy Preview for openshift-kmm ready!

Name Link
🔨 Latest commit 6502f43
🔍 Latest deploy log https://app.netlify.com/sites/openshift-kmm/deploys/66b89c253903ee0008e62929
😎 Deploy Preview https://deploy-preview-1170--openshift-kmm.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

When firmware is added to the driver-cotnainer there are 2 actions that
were taken:

1. Copy the firmware files onto the node at `/var/lib/firmware`
2. Add `/var/lib/firmware` to `/sys/module/firmware_class/parameters/path`
   in order to update the kernel lookup directories for firmware files.

In order to make this feature configurable, we will allow the user to
choose the path on the nodes to write the firmware files to.

In order to make it work with no additional changes, when firmware files are
added to the driver-container, we added a default directory to add the
firmware files to on the nodes.

To keep it simple, we will also always add this path to the kernel lookup
directories.

Signed-off-by: Yoni Bettan <[email protected]>
@ybettan
Copy link
Collaborator Author

ybettan commented Aug 11, 2024

/retest

1 similar comment
@ybettan
Copy link
Collaborator Author

ybettan commented Aug 11, 2024

/retest

@yevgeny-shnaidman
Copy link
Member

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Aug 11, 2024
@openshift-merge-bot openshift-merge-bot bot merged commit e8aa426 into rh-ecosystem-edge:main Aug 11, 2024
19 checks passed
@ybettan ybettan deleted the firmware-path branch August 12, 2024 07:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cherry-picking error for 61a75b6763b86516dc2d3c7c767452a349c43b80
2 participants