Under ubuntu core/core-desktop, /etc/default/locale is not modifiable
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
systemd (Ubuntu) |
New
|
Medium
|
Unassigned | ||
Jammy |
New
|
Medium
|
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 *localectl set-lang LANG="xx_YY.UTF-8"* should change the locale to the specified one. Also, *localectl* should return the current locale.
[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/
Related branches
- Lukas Märdian: Pending requested
-
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 |
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.