I think the root cause here is this bind mount:

https://github.com/canonical/core-
base/blob/82c8fadb4cf77df5f771220d27c40dc011675f23/static/etc/system-
image/writable-paths#L32

When systemd-localed tries to update the configuration file, it writes
the new content to a temporary file and then renames it over the top of
the destination. Trying to rename over the bind mount fails.

In core24-desktop, we'd removed the bind mount and instead set it up as
a symlink to /etc/writable/locale.conf:

https://github.com/canonical/core-base-
desktop/blob/2149717d911493e26b3519a51798ae6a287189a7/hooks/009-locale-
archive.chroot#L28-L30

We did similar for the vconsole.conf file used for keymap settings.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2091657

Title:
  systemd-localed requires read-only-etc hacks for /etc/vconsole.conf
  and /etc/locale.conf

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


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to