Re: [systemd-devel] Custom Localed Configuration Location

2023-08-31 Thread Lennart Poettering
On Di, 29.08.23 17:18, TJ Shipp (onezoo...@msn.com) wrote:

> I am trying to create a system where we can change locale on a
> running system (where we would have daemons subscribe to dbus and
> get the properties changed messages) but need to be able to change
> the location of the locale file (by default in /etc/locale.conf) as
> /etc is read-only on our system.

We do not support that. /etc/ is the place for configuration on Linux,
and if you make that immutable you basically turn off the ability to
configure things at runtime. Which is totally OK to do of course, but
if this is the mode you pick you shouldn't be surprised that this is
what you get.

> Is there a way to change the file location to a writeable location
> as I can not find any current means to do such?

This is not configurable, the path /etc/locale.conf is considered
API. It's not a hidden backend or so, but a primary interface to this
setting.

Lennart

--
Lennart Poettering, Berlin


[systemd-devel] Custom Localed Configuration Location

2023-08-29 Thread TJ Shipp
I am trying to create a system where we can change locale on a running system 
(where we would have daemons subscribe to dbus
and get the properties changed messages) but need to be able to change the 
location of the locale file (by default in /etc/locale.conf) as /etc is 
read-only on our system.

Is there a way to change the file location to a writeable location as I can not 
find any current means to do such?
  I have tried making a sym-link to another file, but localed re-writes the 
whole file when called. (For PoC, made /etc writeable, but not able to do long 
term on our system.)

Thank you for your support.

P.S. If anyone is interested in contracting to do this work, please send me a 
private message outside this list.