[Bug 1227520] Re: Timezone changes are not working due to ro /etc and bind mounts

Stéphane Graber stgraber at stgraber.org
Tue Sep 24 17:28:53 UTC 2013


My main problem with symlinks are that we wouldn't be able to access the original file as the .tar.xz would contain a symlink instead of the file it's diverting.
Symlinks also come with the problem that some tests may fail (the symlink is typically seen as a file but may also be a directory) and some tools won't recurse through symlinks in the same way they do through directories.

On top of that, outside of the very small performance gain we'd gain, they really wouldn't solve much, this bug highlights two problematic cases:
 - Atomic file modification (by creating another file, then doing the rename+delete) which isn't possible as the directory itself is read-only. This would be no different with symlinks.
 - Symlink target changes. This actually works with bind-mounts, if you change the target of the target file but doesn't with symlinks as it'll instead try to change the original file which is read-only (unless we go through a separate read-write directory and add an extra step as was discussed in this bug).

So all in all, I saw symlinks as adding a lot of complexity (copying any
file/directory they replace in some other location of the rootfs, ...)
for only a barely measurable performance gain (and arguably a cleaner
/proc/mounts, if anyone cares).

-- 
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:
  Incomplete
Status in “ubuntu-system-settings” package in Ubuntu:
  Invalid

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