You are not logged in.

#1 2013-05-10 20:03:29

jrussell
Member
From: Cape Town, South Africa
Registered: 2012-08-16
Posts: 510

'Duplicate assignment of kernel/sysrq' in journal

Hi, Im seeing a lot of

systemd-sysctl[192]: Duplicate assignment of kernel/sysrq in file '/usr/lib/sysctl.d/50-default.conf', ignoring.

in my journal lately, any ideas of what it is? google hasn't helped me.


bitcoin: 1G62YGRFkMDwhGr5T5YGovfsxLx44eZo7U

Offline

#2 2013-05-10 21:32:49

matse
Member
Registered: 2011-04-27
Posts: 299

Re: 'Duplicate assignment of kernel/sysrq' in journal

You set some settings twice in /etc/sysctl.conf an in /usr/lib/sysctl.d/50-default.conf
See sysctl wiki entry for more informartion.

Offline

#3 2013-05-11 07:58:01

msthev
Member
Registered: 2012-04-05
Posts: 177

Re: 'Duplicate assignment of kernel/sysrq' in journal

Package `procps-ng` provides /etc/sysctl.conf, which contains this:

# Disable SysRq key to avoid console security issues.
kernel.sysrq = 0

And package `systemd` provides /usr/lib/sysctl.d/50-default.conf, which contains the following line:

kernel.sysrq = 16

The file in /usr is read second, and when systemd finds that sysrq variable was already set, it ignores the second assignment, but not without printing the warning.
The easiest fix is to comment this setting in /etc/sysctl.conf.

Offline

#4 2013-05-11 08:30:28

jrussell
Member
From: Cape Town, South Africa
Registered: 2012-08-16
Posts: 510

Re: 'Duplicate assignment of kernel/sysrq' in journal

It's just strange because this only occurs on one of my computers, and they both have those identical files


bitcoin: 1G62YGRFkMDwhGr5T5YGovfsxLx44eZo7U

Offline

#5 2013-05-11 10:09:46

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: 'Duplicate assignment of kernel/sysrq' in journal

Check again, maybe one file has SysRq enabled and one disabled. By default the arch sysctl.conf comes with

kernel.sysrq = 0

Offline

#6 2013-05-11 13:43:39

jrussell
Member
From: Cape Town, South Africa
Registered: 2012-08-16
Posts: 510

Re: 'Duplicate assignment of kernel/sysrq' in journal

100% identical in terms of

kernel.sysrq = 16

in /usr/lib/sysctl.d/50-default.conf

and

kernel.sysrq = 0

in /etc/sysctl.conf

in both computers, only getting the journal output in one of them.

What about your systems?

*Edit
scratch that, I'm seeing 'Duplicate assignment of kernel/sysrq' in both journals.

Last edited by jrussell (2013-05-11 13:46:22)


bitcoin: 1G62YGRFkMDwhGr5T5YGovfsxLx44eZo7U

Offline

Board footer

Powered by FluxBB