1

This breaks unshare(CLONE_NEWNS), and feels like leftover from some testings.

Ubuntu 15.04:

nir@reed:~$ grep '/ / ' /proc/self/mountinfo 
21 0 8:5 / / rw,relatime shared:1 - ext4 /dev/disk/by-uuid/70f9850c-8ebd-4881-a504-e14ec8d37f66 rw,discard,errors=remount-ro,data=ordered

Ubuntu 14.10:

nir@pilgrim:~$ grep '/ / ' /proc/self/mountinfo 
21 0 8:1 / / rw,relatime - ext4 /dev/disk/by-uuid/1d8ff8a8-6026-48dd-b6ce-e52b46c1f33d rw,errors=remount-ro,data=ordered
1
  • Probably done by the new systemd but I couldn't figure out where.
    – niry
    May 12, 2015 at 4:53

1 Answer 1

2

This may "feel" like "leftover from some testings", but it is not. It's a deliberate design choice by Lennart Poettering, made nearly three years ago in order to make systemd's containerization work. The intent was that if one wanted a private / mount one used a (future) /etc/fstab setting for it.

Note that those fstab options came about in those intervening years and now exist. One could also, alternatively, use them in an explicit /etc/systemd/system/-.mount unit.

See Poettering's own explanation.

Further reading

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.