Created
November 16, 2012 15:23
-
-
Save overplumbum/4088154 to your computer and use it in GitHub Desktop.
Permament fix for /run/shm creation in Ubuntu LXC guest systems (oneiric..precise)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# https://bugs.launchpad.net/launchpad/+bug/974584 | |
# common oneiric-lxc-guest bug | |
grep --silent "/run/shm" /lib/init/fstab || echo "none /run/shm tmpfs nosuid,nodev 0 0" >> /lib/init/fstab | |
mkdir -p /run/shm | |
mount /run/shm | |
# required for systems after manual dirty fixing | |
test -L /dev/shm || ( umount /dev/shm ; rm -fr /dev/shm && ln -s /run/shm /dev/ ) | |
# just a test | |
python -c "import multiprocessing ; mp = multiprocessing.Pool(2)" && echo "everything is fine" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment