Add linux-sysctl-defaults to base packages#9698
Add linux-sysctl-defaults to base packages#9698devsnek wants to merge 2 commits intoarmbian:mainfrom
linux-sysctl-defaults to base packages#9698Conversation
📝 WalkthroughWalkthroughAdds Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@config/cli/common/main/packages`:
- Line 27: The package entry "linux-sysctl-defaults" is present unconditionally
but is only in Debian bookworm backports; either ensure bookworm backports are
enabled during rootfs builds or make the package release-conditional so it is
skipped for bookworm. Fix by updating the package list handling that processes
"linux-sysctl-defaults" to check the target release (e.g., a release variable or
detector used in your packaging code) and only include the package for releases
where it exists (trixie/forky/sid and Ubuntu releases) or add logic to
enable/configure bookworm-backports during the build when the target is
bookworm.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: a9be1840-ad3b-494a-9416-1f6e0d7a3879
📒 Files selected for processing (1)
config/cli/common/main/packages
|
✅ This PR has been reviewed and approved — all set for merge! |
EvilOlaf
left a comment
There was a problem hiding this comment.
This will break Bookworm as rabbit correctly noticed the package does not exist in default Bookworm repo. Either must not be introduced or Bookworm must be retired the same way.
|
Perhaps it would be sane that we produce our defaults? This package only contains: /usr/lib/sysctl.d/50-default.conf |
|
@igorpecovnik perhaps... I think using the upstream package is nice though since it keeps everything in sync. Debian images all ship with this package installed, so it seems expected. |
|
Possible to unlink old distro version from "main", and keep old file version only for old distros. |
|
Updated for bookworm :) |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@config/cli/bookworm/main/packages`:
- Around line 26-27: Update the Bookworm package manifest by adding the missing
package name linux-sysctl-defaults to the packages list so the Bookworm CLI
image installs /usr/lib/sysctl.d/50-default.conf; edit the same packages file
that currently contains the entries linux-base and lsof and insert
linux-sysctl-defaults into that list (ensuring formatting matches the
surrounding lines).
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 03e61cf7-cad8-4dba-a5c7-3a61edf82cb0
📒 Files selected for processing (5)
config/cli/bookworm/mainconfig/cli/bookworm/main/config_desktopconfig/cli/bookworm/main/packagesconfig/cli/bookworm/main/packages.additionalconfig/cli/bookworm/main/packages.uninstall
💤 Files with no reviewable changes (1)
- config/cli/bookworm/main
✅ Files skipped from review due to trivial changes (3)
- config/cli/bookworm/main/packages.uninstall
- config/cli/bookworm/main/config_desktop
- config/cli/bookworm/main/packages.additional
|
I check for "does image builds or not"
|
|
If this package is not present everywhere ... then perhaps better shipping file as a part of bsp? (we had a plan for armbian-cli ... but not there ATM) |
|
I got the impression that (after the adoption of pr in its current form) the package is missing only in noble. An obvious or, even worse, hidden conflict with files from system repositories is a bad thing. I recently had a really hard time realizing that Armbian was quietly and unnoticeably adding 1.0.0.1 to the DNS list... |
Description
Include
linux-sysctl-defaultsin base packages for distribution. This package installs https://github.com/systemd/systemd/blob/main/sysctl.d/50-default.conf into/usr/lib/sysctl.d/50-default.conf.The primary fix here is to allow using
pingwithoutsudo. In older versions,pinghad setcap/uid, but in more recent versions it is expected that thenet.ipv4.ping_group_rangesysctl is set instead (which the conf file does).It also sets a few reasonable defaults for preventing common networking and filesystem security issues.
Here's a diff I made of my armbian system before and after installing this package: https://gist.github.com/devsnek/ee2cce1660e4522037b27899c46d387c
How Has This Been Tested?
I installed this package on my armbian system and rebooted and made sure that everything was still working as expected. I also verified that
compile.shstill works to produce an image.Checklist:
Please delete options that are not relevant.
Summary by CodeRabbit