If it does make sense, the implementation that follows is:

if mountpoint -q /dev && mountpoint -q /dev/shm; then
  compat_link /dev/shm /run/shm
else
  [ -d /run/shm ] || mkdir -p /run/shm
  mountpoint -q /dev/ || compat_link /run/shm /dev/shm
fi

BTW, I realize there's another possible scenario, which is that /dev/shm
is a bind mount when /dev itself is not.  We should probably handle that
the same as if they both are (make /run/shm a symlink to /dev/shm), in
which case the first check just needs to be "if mountpoint -q /dev/shm".

** Tags removed: rls-q-incoming

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

Title:
  Semaphores cannot be created in lxc container

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to