[Bug 1227520] Re: Timezone changes are not working due to ro /etc and bind mounts
Martin Pitt
martin.pitt at ubuntu.com
Tue Sep 24 14:16:17 UTC 2013
Stéphane Graber [2013-09-24 13:57 -0000]:
> So I think your best bet here is to change those daemons to fallback
> to in-place file content changes when atomic edits fail because of
> writable fs.
As I wrote above that can only be a workaround hack. Changing such
kind of files inline is a source of race conditions and program
crashes, not a solution.
> If /etc/localtime is already a symlink in the rootfs, you should be
> able to change its target without much trouble too.
Not if it points to a file in /usr/share/zoneinfo/... You don't want
to change the contents of the target file, but you want to change the
symlink itself to a new target. But the latter again doesn't work on
an r/o file system, so we'd need some intermediate file like
/etc/localtime → /data/localtime → /usr/share/zoneinfo/...
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/1227520
Title:
Timezone changes are not working due to ro /etc and bind mounts
Status in “systemd” package in Ubuntu:
Confirmed
Status in “ubuntu-system-settings” package in Ubuntu:
Confirmed
Bug description:
There is no way to set up a different timezone than automatic in the
System Settings
ProblemType: Bug
DistroRelease: Ubuntu 13.10
Package: ubuntu-system-settings 0.1+13.10.20130910.3-0ubuntu1
Uname: Linux 3.4.0-3-mako armv7l
ApportVersion: 2.12.2-0ubuntu1
Architecture: armhf
Date: Thu Sep 19 08:41:07 2013
InstallationDate: Installed on 2013-09-18 (0 days ago)
InstallationMedia: Ubuntu Saucy Salamander (development branch) - armhf (20130918)
MarkForUpload: True
ProcEnviron:
TERM=linux
PATH=(custom, no user)
SourcePackage: ubuntu-system-settings
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1227520/+subscriptions
More information about the foundations-bugs
mailing list