From: ChenQi <Qi.Chen@windriver.com>
To: Koen Kooi <koen@dominion.thruhere.net>
Cc: openembedded-core@lists.openembedded.org
Subject: Re: [PATCH 1/1] systemd: make /etc/sysctl.conf have real effect
Date: Thu, 6 Nov 2014 19:59:23 +0800 [thread overview]
Message-ID: <545B629B.5000900@windriver.com> (raw)
In-Reply-To: <745681A3-F15C-4D06-93C6-3342E014B672@dominion.thruhere.net>
On 11/06/2014 06:33 PM, Koen Kooi wrote:
>> Op 6 nov. 2014, om 08:59 heeft ChenQi <Qi.Chen@windriver.com> het volgende geschreven:
>>
>> On 11/06/2014 03:48 PM, Koen Kooi wrote:
>>> Op 6 nov. 2014, om 08:32 heeft Chen Qi <Qi.Chen@windriver.com> het volgende geschreven:
>>>
>>>> In systemd, /etc/sysctl.conf is actually ignored by systemd-sysctl,
>>>> because this command only examine *.conf files under a bunch of directories
>>>> like /etc/sysctl.d or /usr/lib/sysctl.d.
>>>>
>>>> The problem is we are used to configuring kernel parameters in /etc/sysctl.conf,
>>>> so it would be really strange if the configuration in that file doesn't have any
>>>> effect.
>>>>
>>>> This patch reference Fedora's solution to this problem, creating a symlink to
>>>> /etc/sysctl.conf under /etc/sysctl.d/.
>>> Shouldn't this be done in procps instead?
>>>
>> Actually, the problem is not about `sysctl' command.
>> procps provides `sysctl', but busybox also provides this command.
>> It's very possible that on our generated image, procps is not installed but `sysctl' command is available.
>> Both busybox's and procps's `sysctl' command takes /etc/sysctl.conf into consideration.
> Right, but only procps installs that file.
As busybox provides `sysctl' utility, is it reasonable that it also
provides a corresponding configuration file (/etc/sysctl.conf)? Should
we make a patch for busybox?
>> Now, systemd provides a similar utility called `systemd-sysctl' which is executed at boot time via systemd-sysctl.service.
>>
>> So our actually problem is that systemd-sysctl ignores /etc/sysctl.conf, which makes it somewhat strange, especially to users who are used to configuring parameters in sysctl.conf.
>> And this patch solves this problem by adding a symlink under /etc/sysctl.d/.
>>
>> That's why I think we should put this in systemd.
> You're adding a symlink to a file which only exists if you install procps, which isn't in RDEPENDS.
>
As I said before, procps is *not* necessary for the sysctl mechanism to
have effect.
(Think about systemd-based core-image-minimal image.)
Busybox provides `sysctl', systemd provides `systemd-sysctl'.
(It's an easy program, there might exist other packages that provide it
too.)
/etc/sysctl.conf is a configuration file which is very likely to be
modified or created by administrators to configure kernel parameters.
(You can't expect administrators to all start learning systemd, trying
to understand the gap and differences. In addition, they may have
scripts that edit /etc/sysctl.conf to automate their work.)
The point of the symlink is to ensure that when users edit
/etc/sysctl.conf (or create one), configurations in that file will have
effect at boot time.
Just think about this problem from a standpoint of user experience.
Best Regards,
Chen Qi
next prev parent reply other threads:[~2014-11-06 11:57 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-06 7:32 [PATCH 0/1] systemd: make /etc/sysctl.conf have real effect Chen Qi
2014-11-06 7:32 ` [PATCH 1/1] " Chen Qi
2014-11-06 7:48 ` Koen Kooi
2014-11-06 7:59 ` ChenQi
2014-11-06 10:33 ` Koen Kooi
2014-11-06 11:59 ` ChenQi [this message]
2014-11-06 13:29 ` Koen Kooi
2014-11-06 22:38 ` Randy Witt
2014-11-07 3:34 ` ChenQi
2014-11-07 14:29 ` Martin Jansa
2014-11-09 7:06 ` ChenQi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=545B629B.5000900@windriver.com \
--to=qi.chen@windriver.com \
--cc=koen@dominion.thruhere.net \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox