[systemd-devel] [PATCH] localed: search locale settings on kernel cmdline first

Lennart Poettering lennart at poettering.net
Tue Jul 1 07:36:47 PDT 2014


On Tue, 01.07.14 16:47, microcai (microcai at fedoraproject.org) wrote:

> > Maybe another option is to improve localectl on the client side to
> > simply warn the user if there's something on the kernel cmdline
> > specified? (this check should probably test this directly, bypassing
> > localed, and thus get skipped if localectl is used on a remote host).
> > 
> > i.e. just a simple warning if you type "localectl" that says: "Warning:
> > Locale configuration has been specified on the kernel command line,
> > overriding the system settings below." or so...
> 
> kernel has BOOT time, etc settings has modified time, which one is newer, take 
> that ?

I am pretty sure we should stay with the simple logic of "kernel
cmdline overrides /etc". Trying to be smarter and saying newer /etc
overrides older /proc/cmdline will just be confusing, and has not been
used anywhere so far...

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list