Skip to content

RDKMVE-2571 Add cgroup v2 support in RDKE - #396

Merged
aminaseyyad merged 5 commits into
rdkcentral:developfrom
aminaseyyad:develop
Sep 17, 2026
Merged

aminaseyyad merged 5 commits into
rdkcentral:developfrom
aminaseyyad:develop

Conversation

@aminaseyyad

Copy link
Copy Markdown
Contributor

Update on rpi-cmdline.bbappend for cgroupv2 change

Copilot AI lite review requested due to automatic review settings September 10, 2026 06:30

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The cmdline edit is not idempotent and can repeatedly append duplicate kernel parameters on task re-runs, which should be prevented before merging.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

This PR updates the Raspberry Pi boot cmdline.txt augmentation to enable systemd’s unified (cgroup v2) hierarchy when the DOBBY_CONTAINERS distro feature is enabled, aligning the platform’s boot parameters with cgroup v2 usage.

Changes:

  • Appends systemd.unified_cgroup_hierarchy=1 to the kernel command line alongside existing cgroup memory parameters under DOBBY_CONTAINERS.
File summaries
File Description
recipes-bsp/bootfiles/rpi-cmdline.bbappend Extends the cmdline append logic to force systemd to use unified cgroup hierarchy (cgroup v2).
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread recipes-bsp/bootfiles/rpi-cmdline.bbappend Outdated
Updated the implementation to be idempotent. The kernel parameters are now appended only when they are not already present in cmdline.txt, preventing duplication when do_compile is re-executed
Copilot AI review requested due to automatic review settings September 10, 2026 06:39

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The new grep check uses regex matching, which can mis-detect dotted parameters (e.g., systemd.unified_cgroup_hierarchy=1) and skip required cmdline updates.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 2
  • Review effort level: Lite

Comment thread recipes-bsp/bootfiles/rpi-cmdline.bbappend Outdated
Comment thread recipes-bsp/bootfiles/rpi-cmdline.bbappend
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings September 10, 2026 06:48

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The change is small and targeted, and the only noted issue is a minor shell-quoting robustness improvement.

Review details

Suppressed comments (1)

recipes-bsp/bootfiles/rpi-cmdline.bbappend:6

  • CMDLINE_FILE is unquoted in the first sed invocation, while later commands quote it. Unquoted shell variables can undergo word-splitting/globbing (e.g., if WORKDIR contains spaces or [/*), which can make the task fail or operate on the wrong files; quoting here makes the edit consistent and robust.
        CMDLINE_FILE="${WORKDIR}/cmdline.txt"
        sed -i 's/[[:space:]]*$//' ${CMDLINE_FILE}

  • Files reviewed: 1/1 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

Copilot AI review requested due to automatic review settings September 15, 2026 11:08

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No unresolved issues block approval.

Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

@arun-madhavan-013

Copy link
Copy Markdown
Contributor

Please trigger build verification and if it passes; merge.

Copilot AI review requested due to automatic review settings September 17, 2026 04:59

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Retaining cgroup v1 alongside cgroup v2 is needed to avoid breaking legacy consumers.

Get a fresh assessment by requesting another Copilot review.

Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 1
  • Review effort level: Lite

Comment thread recipes-kernel/android/files/rdkv.cfg
@aminaseyyad
aminaseyyad merged commit 54a0a71 into rdkcentral:develop Sep 17, 2026
3 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 17, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants