Under ubuntu core/core-desktop, /etc/default/locale is not modifiable
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
systemd (Ubuntu) |
Won't Fix
|
Medium
|
Unassigned | ||
Jammy |
Fix Released
|
Medium
|
Unassigned | ||
Lunar |
Won't Fix
|
Undecided
|
Unassigned | ||
Mantic |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
[Impact]
When working with ubuntu core or ubuntu core desktop, neither */etc/default/
The first half of the solution is to create the folder */etc/writable/
This solution, unfortunately, isn't complete. Although any application that just reads the files will work, not all of the applications that write to them will; specifically the systemd utilities that set the contents for those files, because they don't open the file directly; instead, they create first the new file in the same folder than the old one, fill its contents, and only then delete the old one and rename the new one. To solve this, systemd in Ubuntu already has several patches that detect if a file is a soft-link, in which case it replaces the old path with the destination one.
Currently I have in place a patch for Ubuntu Core Desktop that implements both changes for both */etc/default/
[Test plan]
Using *sudo localectl set-locale xx_YY.UTF-8* in an Ubuntu Core or Ubuntu Core Desktop admin terminal must change the locale to the specified one, which can be checked by reading the */etc/default/
Using *sudo dbus-send --system --print-reply --dest=
[Where problems could occur]
In general, applications just read the content of the file and use the DBus interface to set the locale, so only those applications that modify by themselves the */etc/default/
[Other info]
For Noble, this will be addressed when we merge systemd v255 from Debian. This is only needed on core, so we don't need to fix for Mantic or Lunar.
Related branches
- Lukas Märdian: Approve
-
Diff: 472 lines (+303/-25)5 files modifieddebian/changelog (+16/-0)
debian/patches/debian/UBUNTU-Support-system-image-read-only-etc.patch (+164/-25)
debian/patches/lp2037281-core-device-ignore-DEVICE_FOUND_UDEV-bit-on-switching-roo.patch (+116/-0)
debian/patches/series (+1/-0)
debian/tests/upstream (+6/-0)
description: | updated |
description: | updated |
Changed in systemd (Ubuntu Lunar): | |
status: | New → Won't Fix |
Changed in systemd (Ubuntu Mantic): | |
status: | New → Won't Fix |
tags: | removed: systemd-sru-next |
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.