]> git.proxmox.com Git - mirror_lxc.git/blobdiff - templates/lxc-ubuntu-cloud.in
ubuntu templates: don't check for $rootfs/run/shm
[mirror_lxc.git] / templates / lxc-ubuntu-cloud.in
index 5de1dbd59566bdd5902e5f3817b4b77f6b5fb9aa..c4eb5ca42068824b948a96d679652c14cbb17322 100644 (file)
@@ -122,7 +122,7 @@ EOF
     # get bind mounted to the host's /run/shm.  So try to rmdir
     # it, and in case that fails move it out of the way.
     # NOTE: This can only be removed once 12.04 goes out of support
-    if [ ! -L $rootfs/dev/shm ] && [ -d $rootfs/run/shm ] && [ -e $rootfs/dev/shm ]; then
+    if [ ! -L $rootfs/dev/shm ] && [ -e $rootfs/dev/shm ]; then
         rmdir $rootfs/dev/shm 2>/dev/null || mv $rootfs/dev/shm $rootfs/dev/shm.bak
         ln -s /run/shm $rootfs/dev/shm
     fi