tmpfiles already checks if the symlink is the same if it already exists.
However, in this case it's not literally the same: your's points to
/proc/mounts while /usr/lib/tmpfiles.d/debian.conf makes it point to
../proc/self/mounts. If these were the same, this error would disappear.

Now, /etc/mtab → /proc/mounts is a waste as /proc/mounts is already a
symlink to self/mounts, so you need to resolve symlinks twice. The "../"
is so that this works with different --root arguments, i. e. if you want
to do things with such an image when you mount it somewhere.

Can I convince you to change the snappy image to have /etc/mtab →
../proc/self/mounts ? If not, could we at least agree to →
/proc/self/mounts to avoid the double resolution?

** Summary changed:

- please allow /etc/mtab to be a pre-existing link on readonly filesystems
+ make snappy's /etc/mtab symlink agree to tmpfiles.d/debian.conf

** Changed in: systemd (Ubuntu)
       Status: New => Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1547033

Title:
  make snappy's /etc/mtab symlink agree to tmpfiles.d/debian.conf

To manage notifications about this bug go to:
https://bugs.launchpad.net/snappy/+bug/1547033/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to