/etc/localtime symlink not correctly handled when using /etc/writable
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
systemd (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Jammy |
Fix Released
|
Undecided
|
Unassigned | ||
Kinetic |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
When using /etc/writable (e.g. Ubuntu Core) /etc/localtime is a symlink to /etc/writable/
[Test Plan]
This is somewhat hard to test, the following situations need to be reproduced:
- On firstboot the timezone link will not be read correctly, it will with this change.
- Starting a timer unit and then changing timezone will cause it not to occur at the correct time.
[Where problems could occur]
This could potentially break other users of localtime, however the change is similar to existing changes which have been in Ubuntu's version of systemd for some time. The change detects the /etc/writable case and if not should have the same existing behaviour.
Related branches
- Lukas Märdian: Approve
-
Diff: 328 lines (+268/-2)7 files modifieddebian/changelog (+21/-0)
debian/patches/lp1975667-Ensure-dns_search_domain_unlink_marked-removes-all-marked.patch (+24/-0)
debian/patches/lp1978079-efi-pstore-not-cleared-on-boot.patch (+10/-2)
debian/patches/lp1979951-network-do-not-remove-localhost-address.patch (+66/-0)
debian/patches/lp1981042-core-firstboot-workaround-timezone-issues-caused-by-Ubunt.patch (+110/-0)
debian/patches/lp1982462-units-remove-the-restart-limit-on-the-modprobe-.service.patch (+33/-0)
debian/patches/series (+4/-0)
- Lukas Märdian: Approve
-
Diff: 180 lines (+130/-4)4 files modifieddebian/changelog (+12/-2)
debian/patches/lp1978079-pstore-Run-after-modules-are-loaded.patch (+7/-2)
debian/patches/lp1981042-core-firstboot-workaround-timezone-issues-caused-by-Ubunt.patch (+110/-0)
debian/patches/series (+1/-0)
tags: | added: rls-jj-incoming rls-kk-incoming |
tags: | added: fr-2547 |
tags: | removed: rls-jj-incoming rls-kk-incoming |
Changed in systemd (Ubuntu Kinetic): | |
status: | New → Fix Committed |
description: | updated |
tags: | added: foundations-todo |
tags: | removed: foundations-todo |
This bug was fixed in the package systemd - 251.2-2ubuntu2
---------------
systemd (251.2-2ubuntu2) kinetic; urgency=medium
[ Lukas Märdian ] patches/ units-remove- the-restart- limit-on- the-modprobe- .service. patch /git.launchpad. net/~ubuntu- core-dev/ ubuntu/ +source/ systemd/ commit/ ?id=46c36d4c73d f8980f6b6137142 fb16ba90465a94
* Remove restart limit on the modprobe@.service (LP: #1982462)
File: debian/
https:/
[ Nick Rosbrook ] patches/ lp1981042- core-firstboot- workaround- timezone- issues- caused- by-Ubunt. patch /git.launchpad. net/~ubuntu- core-dev/ ubuntu/ +source/ systemd/ commit/ ?id=9a435d43e75 3f39531c9a5517a 85e8eb259e18f1 patches/ lp1978079- pstore- Run-after- modules- are-loaded. patch /git.launchpad. net/~ubuntu- core-dev/ ubuntu/ +source/ systemd/ commit/ ?id=38d8d12be92 4477f0eecb64f37 37e07b03d73a42
* core,firstboot: workaround timezone issues on Ubuntu Core (LP: #1981042)
Thanks to Robert Ancell for preparing the patch.
File: debian/
https:/
* pstore: do not try to load mtdpstore (LP: #1981622)
File: debian/
https:/
-- Nick Rosbrook <email address hidden> Fri, 22 Jul 2022 15:23:45 -0400