if [ -L /dev/shm ]thenmv /dev/shm /dev/shm~mkdir /dev/shmmount --bind "`readlink -f /dev/shm~`" /dev/shmfi
Monday, May 16, 2011
Unbreaking LXC on latest Debian unstable
With recent switch to /run directory in Debian I was getting error from lxc when it was trying to mount /dev/shm in container and failed because /dev/shm is now symlink to inside /run. The simplest fix I found is replacing symlink with bind mount. Here's what I've added to /etc/rc.local
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment