[Draft] lvrt cgroupsv2: Add cgroups v2 file hierarchy specific to LVRT usage #890
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary of Changes
Since cgroups v1 is going to be deprecated soon, we need to support v2 paths.
Currently LVRT requires a specific hierarchy under
/sys/fs/cgroup
to allocate resources and tasks to specific groups. Since this is a requirement only for LVRT, and not NILRT itself, this can be pulled out of the current initscripts-nilrt that takes care of this. A new recipe for a new package has been created as part of this PR, which takes care of creating the required file hierarchy. This package will be added as a dependency to the LVRT package, so that this gets set up only when LVRT gets installed on the target.This will be followed up by another PR that will remove the existing initscripts-nilrt that is being replaced right now.
Justification
AB#3271314
Testing
Tested by installing the built IPK on an RT target, and made sure that the files get added to /etc/init.d. Also made sure that the required symlinks are created in the /etc/rc*.d directories.
bitbake packagefeed-ni-core
)Procedure