← Back to team overview

debcrafters-packages team mailing list archive

[Bug 2108979] Re: Please add a comment in 10-magic-sysrq.conf that it gets overriden by 50-default.conf

 

The fact that 10-magic-sysrq.conf (which is Ubuntu's preferred default)
gets overridden by 50-default.conf is a bug. We should ensure that
procps is able to override anything in 50-default.conf.

As a side note: please do not edit any sysctl configurations shipped by
packages. Instead, to make your own overrides, ship a config in
/etc/sysctl.d, e.g.:

$ cat > /etc/sysctl.d/60-my-sysrq.conf << EOF
kernel.sysrq = <my value>
EOF

See
https://www.freedesktop.org/software/systemd/man/latest/sysctl.d.html
for details.

** Changed in: procps (Ubuntu)
     Assignee: (unassigned) => Nick Rosbrook (enr0n)

** Changed in: procps (Ubuntu)
   Importance: Undecided => Critical

** Changed in: procps (Ubuntu)
   Importance: Critical => High

** Changed in: procps (Ubuntu)
       Status: New => Triaged

** Summary changed:

- Please add a comment in 10-magic-sysrq.conf that it gets overriden by  50-default.conf
+ settings defined in 10-magic-sysrq.conf are overriden by  50-default.conf

-- 
You received this bug notification because you are a member of
Debcrafters packages, which is subscribed to procps in Ubuntu.
https://bugs.launchpad.net/bugs/2108979

Title:
  settings defined in 10-magic-sysrq.conf are overriden by
  50-default.conf

Status in procps package in Ubuntu:
  Triaged

Bug description:
  Description of the problem
  In Ubuntu 24.10 it was sufficient to edit /etc/sysctl.d/10-magic-sysrq.conf to override the default sysrq enablement mask at boot. In Ubuntu 25.04 doing this no longer works because any kernel.sysrq value set in that file is overridden by the value in /usr/lib/sysctl.d/50-default.conf . Here's the relevant snippet of 50-default.conf :

  # System Request functionality of the kernel (SYNC)
  #
  # Use kernel.sysrq = 1 to allow all keys.
  # See https://docs.kernel.org/admin-guide/sysrq.html for a list
  # of values and keys.
  kernel.sysrq = 0x01b6

  (when running "cat /proc/sys/kernel/sysrq" or "sysctl kernel.sysrq"
  the value will be reported as 438 which can make finding the file
  setting it more difficult)

  It would be useful if there was a comment in /etc/sysctl.d/10-magic-
  sysrq.conf hinting that the sysrq value is also set in
  /usr/lib/sysctl.d/50-default.conf or for /etc/sysctl.d/10-magic-
  sysrq.conf not to be made by default as it is misleading.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/procps/+bug/2108979/+subscriptions