Under ubuntu core/core-desktop, /etc/default/locale is not modifiable

Bug #2035122 reported by Sergio Costas
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
systemd (Ubuntu)
New
Medium
Unassigned
Jammy
New
Medium
Unassigned

Bug Description

When working with ubuntu core or ubuntu core desktop, neither /etc/default/locale nor /etc/default/keyboard are modificable, so it's not possible to set the global keyboard or the global language.

Revision history for this message
Sergio Costas (rastersoft-gmail) wrote :

I have a patch that fixes this. We are already using it in ubuntu core desktop. I'm preparing to upload it to the GIT repo.

Revision history for this message
Nick Rosbrook (enr0n) wrote :

We should really address the root of this problem instead of continuing to patch src:systemd.

Revision history for this message
Nick Rosbrook (enr0n) wrote :

We will definitely need to fix this in Jammy, but I am not sure it makes sense to do so in Mantic given the state of x11 keymap support (see bug 2030788).

Changed in systemd (Ubuntu Jammy):
importance: Undecided → Medium
Changed in systemd (Ubuntu):
importance: Undecided → Medium
tags: added: systemd-sru-next
Revision history for this message
Sergio Costas (rastersoft-gmail) wrote :

In ubuntu core desktop, we need to be able to change these two files to allow to set the GDM keyboard and language.

Revision history for this message
Steve Langasek (vorlon) wrote :

> When working with ubuntu core or ubuntu core desktop, neither /etc/default/locale
> nor /etc/default/keyboard are modificable

They should be. This needs to be fixed in Ubuntu Core, not in systemd.

Revision history for this message
Sergio Costas (rastersoft-gmail) wrote :

The point is that the way of fixing them is to make links to /etc/writable. But the systemd tools modify them by creating a new, temporary file first in the place, and then overwriting the old one with the new. So the patch does the same that was already done for other files: detect if the file is a soft link, and in that case, follow it up to the destination.

Revision history for this message
Sergio Costas (rastersoft-gmail) wrote :

So it requires a fix both in Ubuntu Core and systemd.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.